We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193a788 commit 251fb8fCopy full SHA for 251fb8f
1 file changed
src/Report/Xml/Facade.php
@@ -10,7 +10,6 @@
10
namespace SebastianBergmann\CodeCoverage\Report\Xml;
11
12
use const DIRECTORY_SEPARATOR;
13
-use function assert;
14
use function count;
15
use function dirname;
16
use function file_get_contents;
@@ -94,11 +93,13 @@ private function setBuildInformation(CodeCoverage $coverage): void
94
93
} elseif ($coverage->driverIsXdebug()) {
95
$driverExtensionName = 'xdebug';
96
$driverExtensionVersion = phpversion('xdebug');
+ } else {
97
+ // @codeCoverageIgnoreStart
98
+ $driverExtensionName = 'unknown';
99
+ $driverExtensionVersion = 'unknown';
100
+ // @codeCoverageIgnoreEnd
101
}
102
- assert(isset($driverExtensionName));
- assert(isset($driverExtensionVersion));
-
103
$this->project->buildInformation(
104
new Runtime,
105
new DateTimeImmutable,
0 commit comments