Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | final class ProcessTaskTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @test |
||
16 | */ |
||
17 | public function can_create_successful_result() |
||
18 | { |
||
19 | $result = (new ProcessTask('$(which php) -v'))(); |
||
20 | |||
21 | $this->assertTrue($result->isSuccessful()); |
||
22 | $this->assertStringContainsString('PHP', $result->getOutput()); |
||
23 | $this->assertStringContainsString(PHP_VERSION, $result->getOutput()); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @test |
||
28 | */ |
||
29 | public function can_create_failed_result() |
||
30 | { |
||
31 | $result = (new ProcessTask('sdfsdfsdf'))(); |
||
32 | |||
33 | $this->assertTrue($result->isFailure()); |
||
34 | $this->assertSame('Exit 127: Command not found', $result->getDescription()); |
||
35 | $this->assertSame("sh: 1: sdfsdfsdf: not found\n", $result->getOutput()); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @test |
||
40 | */ |
||
41 | public function can_add_a_process_instance() |
||
48 | } |
||
49 | } |
||
50 |
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