Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 13.33% |
Changes | 0 |
1 | <?php |
||
20 | final class Runtime implements RuntimeInterface |
||
21 | { |
||
22 | private $runtime; |
||
23 | |||
24 | public function __construct() |
||
25 | { |
||
26 | $this->runtime = new RuntimeEnvironment(); |
||
27 | } |
||
28 | |||
29 | public function getDriverClass(): string |
||
30 | { |
||
31 | $driverClass = Dummy::class; |
||
32 | |||
33 | // @codeCoverageIgnoreStart |
||
34 | if ($this->isHHVM()) { |
||
35 | $driverClass = HHVM::class; |
||
36 | } |
||
37 | |||
38 | if ($this->isPHPDBG()) { |
||
39 | $driverClass = PHPDBG::class; |
||
40 | } |
||
41 | |||
42 | if ($this->hasXdebug()){ |
||
43 | $driverClass = Xdebug::class; |
||
44 | } |
||
45 | // @codeCoverageIgnoreEnd |
||
46 | |||
47 | return $driverClass; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Returns true when Xdebug is supported or |
||
52 | * the runtime used is PHPDBG. |
||
53 | */ |
||
54 | 64 | public function canCollectCodeCoverage(): bool |
|
55 | { |
||
56 | 64 | return $this->runtime->canCollectCodeCoverage(); |
|
57 | } |
||
58 | |||
59 | public function __call($name, $arguments) |
||
62 | } |
||
63 | } |
||
64 |
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