| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function fileAtLineShouldCovered($file, $line = null) |
||
| 49 | { |
||
| 50 | $data = $this->coverage->getData(); |
||
| 51 | $file = getcwd().\DIRECTORY_SEPARATOR.$file; |
||
| 52 | |||
| 53 | Assert::true(isset($data[$file])); |
||
| 54 | if (null === $line) { |
||
| 55 | return; |
||
| 56 | } |
||
| 57 | |||
| 58 | Assert::true(isset($data[$file][$line])); |
||
| 59 | Assert::notEmpty($data[$file][$line]); |
||
| 60 | } |
||
| 62 |
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