Total Complexity | 3 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class CallbackTaskRunnerTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @test |
||
16 | */ |
||
17 | public function can_create_successful_result() |
||
18 | { |
||
19 | $result = (new CallbackTaskRunner())(new CallbackTask(function () {})); |
||
20 | |||
21 | $this->assertTrue($result->isSuccessful()); |
||
22 | $this->assertNull($result->getOutput()); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @test |
||
27 | * @dataProvider outputProvider |
||
28 | */ |
||
29 | public function stringifies_output($output, $expectedOutput) |
||
30 | { |
||
31 | $result = (new CallbackTaskRunner())(new CallbackTask(function () use ($output) { return $output; })); |
||
32 | |||
33 | $this->assertTrue($result->isSuccessful()); |
||
34 | $this->assertSame($expectedOutput, $result->getOutput()); |
||
35 | } |
||
36 | |||
37 | public static function outputProvider() |
||
54 | ]; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @test |
||
59 | */ |
||
60 | public function supports_callback_task() |
||
63 | } |
||
64 | } |
||
65 |
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