| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function can_configure_schedule_with_event() |
||
| 19 | { |
||
| 20 | $extension = new class() implements Extension { |
||
| 21 | public function __toString(): string |
||
| 22 | { |
||
| 23 | return 'my extension'; |
||
| 24 | } |
||
| 25 | }; |
||
| 26 | |||
| 27 | $schedule = (new MockScheduleBuilder()) |
||
| 28 | ->addSubscriber(new ConfigureScheduleSubscriber([$extension])) |
||
| 29 | ->getRunner() |
||
| 30 | ->buildSchedule() |
||
| 31 | ; |
||
| 32 | |||
| 33 | $this->assertSame($extension, $schedule->getExtensions()[0]); |
||
| 34 | } |
||
| 36 |
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