diff --git a/src/CodeCoverage.php b/src/CodeCoverage.php index 6eb4edf27..ced3b75df 100644 --- a/src/CodeCoverage.php +++ b/src/CodeCoverage.php @@ -896,14 +896,14 @@ private function selectDriver(Filter $filter): Driver return new PHPDBG; } - if ($runtime->hasXdebug()) { - return new Xdebug($filter); - } - if ($runtime->hasPCOV()) { return new PCOV; } + if ($runtime->hasXdebug()) { + return new Xdebug($filter); + } + throw new RuntimeException('No code coverage driver available'); }