Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function testNow(): void |
||
38 | { |
||
39 | $clock = new SystemClock($this->factory); |
||
40 | |||
41 | $systemTimeZone = date_default_timezone_get(); |
||
42 | $dateTimeImmutable = new \DateTimeImmutable('now', new \DateTimeZone($systemTimeZone)); |
||
43 | |||
44 | $this->factory->expects($this->once()) |
||
45 | ->method('createDateTime') |
||
46 | ->with('now', $systemTimeZone) |
||
47 | ->willReturn($dateTimeImmutable); |
||
48 | |||
49 | $this->assertSame($dateTimeImmutable, $clock->now()); |
||
50 | } |
||
52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths