Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function supports_and_invokes_class() |
||
20 | { |
||
21 | $task = new class('my task') extends Task implements SelfRunningTask { |
||
22 | public function __invoke(): Result |
||
23 | { |
||
24 | return Result::successful($this); |
||
25 | } |
||
26 | }; |
||
27 | |||
28 | $runner = new SelfRunningTaskRunner(); |
||
29 | |||
30 | $this->assertTrue($runner->supports($task)); |
||
31 | $this->assertTrue($runner($task)->isSuccessful()); |
||
32 | } |
||
34 |
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