diff --git a/src/Report/Xml/BuildInformation.php b/src/Report/Xml/BuildInformation.php index b9375f228..720191978 100644 --- a/src/Report/Xml/BuildInformation.php +++ b/src/Report/Xml/BuildInformation.php @@ -39,14 +39,12 @@ public function __construct( $xmlWriter->startElement('driver'); - if ($runtime->hasXdebug()) { - $xmlWriter->writeAttribute('name', 'xdebug'); - $xmlWriter->writeAttribute('version', phpversion('xdebug')); - } - if ($runtime->hasPCOV()) { $xmlWriter->writeAttribute('name', 'pcov'); $xmlWriter->writeAttribute('version', phpversion('pcov')); + } elseif ($runtime->hasXdebug()) { + $xmlWriter->writeAttribute('name', 'xdebug'); + $xmlWriter->writeAttribute('version', phpversion('xdebug')); } $xmlWriter->endElement();