| Conditions | 3 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public static function isValidMethod($class, $method) |
||
| 19 | { |
||
| 20 | try { |
||
| 21 | if (class_exists('PHPUnit\Metadata\Api\CodeCoverage', true)) { |
||
| 22 | // PHPUnit 10+ |
||
| 23 | (new \PHPUnit\Metadata\Api\CodeCoverage()) |
||
|
|
|||
| 24 | ->linesToBeCovered($class, $method); |
||
| 25 | } else { |
||
| 26 | // PHPUnit < 10 |
||
| 27 | Test::getLinesToBeCovered($class, $method); |
||
| 28 | } |
||
| 29 | } catch (CodeCoverageException $e) { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | |||
| 33 | return true; |
||
| 34 | } |
||
| 36 |
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