| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function testNow(): void |
||
| 37 | { |
||
| 38 | $clock = new SystemClock($this->factory); |
||
| 39 | |||
| 40 | $systemTimeZone = date_default_timezone_get(); |
||
| 41 | $dateTimeImmutable = new \DateTimeImmutable('now', new \DateTimeZone($systemTimeZone)); |
||
| 42 | |||
| 43 | $this->factory->expects($this->once()) |
||
|
|
|||
| 44 | ->method('createDateTime') |
||
| 45 | ->with('now', $systemTimeZone) |
||
| 46 | ->willReturn($dateTimeImmutable); |
||
| 47 | |||
| 48 | $this->assertSame($dateTimeImmutable, $clock->now()); |
||
| 49 | } |
||
| 51 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.