| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class CoverageContext implements Context |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var CodeCoverage |
||
| 24 | */ |
||
| 25 | private $coverage; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @Given I read coverage report :file |
||
| 29 | * |
||
| 30 | * @param string $file |
||
| 31 | */ |
||
| 32 | public function iReadPhpCoverageReport($file) |
||
| 33 | { |
||
| 34 | $file = getcwd().\DIRECTORY_SEPARATOR.$file; |
||
| 35 | |||
| 36 | /** @var CodeCoverage $coverage */ |
||
| 37 | include $file; |
||
| 38 | |||
| 39 | $this->coverage = $coverage; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @Then file :file line :line should covered |
||
| 44 | * |
||
| 45 | * @param mixed $file |
||
| 46 | * @param mixed|null $line |
||
| 47 | */ |
||
| 48 | public function fileAtLineShouldCovered($file, $line = null) |
||
| 60 | } |
||
| 61 | } |
||
| 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