Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class ValidateFormStepTest extends TestCase |
||
15 | { |
||
16 | |||
17 | public function testExecute() |
||
18 | { |
||
19 | $step = new ValidateFormStep(); |
||
20 | |||
21 | $formMock = $this->createMock(Form::class); |
||
22 | $formMock->method('isValid')->willReturn(true); |
||
23 | $step->setArtifacts(new ArtifactCollection([ |
||
24 | new Artifact('form', $formMock) |
||
25 | ])); |
||
26 | |||
27 | $artifacts = $step->execute(new Request()); |
||
28 | |||
29 | $this->assertInstanceOf(ArtifactCollection::class, $artifacts); |
||
30 | $this->assertTrue(true, $artifacts->get('validation')); |
||
31 | } |
||
32 | |||
33 | public function testGetRequiredArtifacts() |
||
38 | } |
||
39 | } |
||
40 |
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