Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PipelineTest extends TestCase |
||
10 | { |
||
11 | #[Test] |
||
12 | public function it_passes_through_information_without_stages(): void |
||
13 | { |
||
14 | $pipeline = new Pipeline(); |
||
15 | |||
16 | $result = $pipeline->process(10); |
||
17 | |||
18 | self::assertEquals(10, $result); |
||
19 | } |
||
20 | |||
21 | #[Test] |
||
22 | public function it_uses_stages_to_process_the_pipeline(): void |
||
23 | { |
||
24 | $pipeline = (new Pipeline())->pipe( |
||
25 | function($p) { return $p * 10; }, |
||
26 | )->pipe( |
||
27 | function($p) { return $p - 10; }, |
||
28 | ); |
||
29 | |||
30 | $result = $pipeline->process(10); |
||
31 | |||
32 | self::assertEquals(90, $result); |
||
33 | } |
||
34 | |||
35 | #[Test] |
||
46 | } |
||
47 | } |
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