File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public static function mockTime(string|\DateTimeImmutable|bool $when = true): Cl
35
35
false === $ when => self ::saveClockBeforeTest (false ),
36
36
true === $ when => new MockClock (),
37
37
$ when instanceof \DateTimeImmutable => new MockClock ($ when ),
38
- default => new MockClock (now ()-> modify ( $ when )),
38
+ default => new MockClock (now ($ when )),
39
39
});
40
40
41
41
return Clock::get ();
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class DatePointTest extends TestCase
21
21
22
22
public function testDatePoint ()
23
23
{
24
- self ::mockTime ('2010-01-28 15:00:00 ' );
24
+ self ::mockTime ('2010-01-28 15:00:00 UTC ' );
25
25
26
26
$ date = new DatePoint ();
27
27
$ this ->assertSame ('2010-01-28 15:00:00 UTC ' , $ date ->format ('Y-m-d H:i:s e ' ));
You can’t perform that action at this time.
0 commit comments