Skip to content

Commit 8198f74

Browse files
Zlendersebastianbergmann
authored andcommitted
Prioritize pcov above xdebug
1 parent b85a920 commit 8198f74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CodeCoverage.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -896,14 +896,14 @@ private function selectDriver(Filter $filter): Driver
896896
return new PHPDBG;
897897
}
898898

899-
if ($runtime->hasXdebug()) {
900-
return new Xdebug($filter);
901-
}
902-
903899
if ($runtime->hasPCOV()) {
904900
return new PCOV;
905901
}
906902

903+
if ($runtime->hasXdebug()) {
904+
return new Xdebug($filter);
905+
}
906+
907907
throw new RuntimeException('No code coverage driver available');
908908
}
909909

0 commit comments

Comments
 (0)