File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -894,9 +894,9 @@ private function selectDriver(Filter $filter): Driver
894
894
{
895
895
$ runtime = new Runtime ;
896
896
897
- if (!$ runtime ->canCollectCodeCoverage ()) {
898
- throw new RuntimeException ('No code coverage driver available ' );
899
- }
897
+ // if (!$runtime->canCollectCodeCoverage()) {
898
+ // throw new RuntimeException('No code coverage driver available');
899
+ // }
900
900
901
901
if ($ runtime ->isPHPDBG ()) {
902
902
return new PHPDBG ;
@@ -906,9 +906,9 @@ private function selectDriver(Filter $filter): Driver
906
906
return new Xdebug ($ filter );
907
907
}
908
908
909
- if ($ runtime -> hasPCOV ( )) {
910
- return new PCOV ($ filter );
911
- }
909
+ if (\function_exists ( ' \pcov\start ' )) {
910
+ return new PCOV ($ filter );
911
+ }
912
912
913
913
throw new RuntimeException ('No code coverage driver available ' );
914
914
}
You can’t perform that action at this time.
0 commit comments