File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -796,17 +796,17 @@ public function testIsImmutable()
796
796
public function testSetDate ()
797
797
{
798
798
$ response = new Response ();
799
- $ response ->setDate (\DateTime::createFromFormat (\DateTime ::ATOM , '2013-01-26T09:21:56+0100 ' , new \DateTimeZone ('Europe/Berlin ' )));
799
+ $ response ->setDate (\DateTime::createFromFormat (\DateTimeInterface ::ATOM , '2013-01-26T09:21:56+0100 ' , new \DateTimeZone ('Europe/Berlin ' )));
800
800
801
- $ this ->assertEquals ('2013-01-26T08:21:56+00:00 ' , $ response ->getDate ()->format (\DateTime ::ATOM ));
801
+ $ this ->assertEquals ('2013-01-26T08:21:56+00:00 ' , $ response ->getDate ()->format (\DateTimeInterface ::ATOM ));
802
802
}
803
803
804
804
public function testSetDateWithImmutable ()
805
805
{
806
806
$ response = new Response ();
807
- $ response ->setDate (\DateTimeImmutable::createFromFormat (\DateTime ::ATOM , '2013-01-26T09:21:56+0100 ' , new \DateTimeZone ('Europe/Berlin ' )));
807
+ $ response ->setDate (\DateTimeImmutable::createFromFormat (\DateTimeInterface ::ATOM , '2013-01-26T09:21:56+0100 ' , new \DateTimeZone ('Europe/Berlin ' )));
808
808
809
- $ this ->assertEquals ('2013-01-26T08:21:56+00:00 ' , $ response ->getDate ()->format (\DateTime ::ATOM ));
809
+ $ this ->assertEquals ('2013-01-26T08:21:56+00:00 ' , $ response ->getDate ()->format (\DateTimeInterface ::ATOM ));
810
810
}
811
811
812
812
public function testSetExpires ()
You can’t perform that action at this time.
0 commit comments