| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function filesFromDirectoryAreCorrect(): void { |
||
| 34 | $attribute = (new \ReflectionClass('application\FilesTreatment'))->getProperty('files'); |
||
| 35 | $attribute->setAccessible(true); |
||
| 36 | $filesAttribute = array_map(function(LocalFile $localFileObject): string { |
||
| 37 | $localFileObjectAttribute = (new \ReflectionClass('\phpDocumentor\Reflection\File\LocalFile'))->getProperty('path'); |
||
| 38 | $localFileObjectAttribute->setAccessible(true); |
||
| 39 | return $localFileObjectAttribute->getValue($localFileObject); |
||
| 40 | }, ($attribute->getValue(new FilesTreatment(dirname(__DIR__ . '/tests'))))); |
||
| 41 | $expectedFilesAttribute = array( |
||
| 42 | dirname(__DIR__) . '/tests/FilesTreatmentTest.php', |
||
| 43 | dirname(__DIR__) . '/tests/PDFFileTest.php' |
||
| 44 | ); |
||
| 45 | $this->assertEquals($expectedFilesAttribute, $filesAttribute); |
||
| 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