Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 30, 2020
1 parent cb644d7 commit f40cf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public function doRun(Test $suite, array $arguments = [], array $warnings = [],
$codeCoverageReports = 0;
}

if ($codeCoverageReports > 0 && !$this->runtime->canCollectCodeCoverage()) {
if ($codeCoverageReports > 0 && \PHP_MAJOR_VERSION < 8 && !$this->runtime->canCollectCodeCoverage()) {
$this->writeMessage('Error', 'No code coverage driver is available');

$codeCoverageReports = 0;
Expand Down

0 comments on commit f40cf5b

Please sign in to comment.