| Conditions | 4 |
| Paths | 6 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function onEngineBeforeStart(EngineEvent $engineEvent) |
||
| 28 | { |
||
| 29 | $output = $engineEvent->getOutputInterface(); |
||
| 30 | |||
| 31 | $output->write('Coverage driver in use: '); |
||
| 32 | |||
| 33 | if ($this->phpdgbBin->isAvailable()) { |
||
| 34 | $output->writeln('PHPDBG'); |
||
| 35 | |||
| 36 | if (extension_loaded('xdebug')) { |
||
| 37 | $output->writeln('WARNING: both drivers found (PHPDBG, xDebug); this may lead to memory exhaustion'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | if (extension_loaded('xdebug')) { |
||
| 42 | $output->writeln('xDebug'); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |