| Conditions | 4 |
| Paths | 5 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 8 | public function onEngineBeforeStart() |
|
| 48 | { |
||
| 49 | 8 | $this->output->write('Coverage driver in use: '); |
|
| 50 | |||
| 51 | 8 | if ($this->phpdgbBin->isAvailable()) { |
|
| 52 | 7 | $this->output->writeln('PHPDBG'); |
|
| 53 | |||
| 54 | 7 | if ($this->xdebug->isLoaded()) { |
|
| 55 | 1 | $this->output->writeln('WARNING: both drivers enabled; this may lead to memory exhaustion!'); |
|
| 56 | |||
| 57 | 1 | return; |
|
| 58 | } |
||
| 59 | } |
||
| 60 | |||
| 61 | 7 | if ($this->xdebug->isLoaded()) { |
|
| 62 | 1 | $this->output->writeln('xDebug'); |
|
| 63 | } |
||
| 64 | } |
||
| 65 | } |
||
| 66 |