Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function throws_exception_if_not_a_command() |
||
45 | { |
||
46 | $command = new class() implements SelfSchedulingCommand { |
||
47 | public function schedule(CommandTask $task): void |
||
48 | { |
||
49 | } |
||
50 | }; |
||
51 | |||
52 | $this->expectException(\InvalidArgumentException::class); |
||
53 | $this->expectExceptionMessageMatches('/is not a console command/'); |
||
54 | |||
55 | (new MockScheduleBuilder()) |
||
56 | ->addSubscriber(new SelfSchedulingCommandSubscriber([$command])) |
||
57 | ->run() |
||
58 | ; |
||
61 |
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