Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jul 28, 2024
1 parent 8a7493b commit cb7b970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tester/MutationTestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function run(): void
{
$start = microtime(true);

if (! file_exists($reportPath = Coverage::getPath())) {
if (! Coverage::isAvailable() || ! file_exists($reportPath = Coverage::getPath())) {
Container::getInstance()->get(Printer::class)->reportError('No coverage report found, aborting mutation testing.'); // @phpstan-ignore-line

exit(1);
Expand Down

0 comments on commit cb7b970

Please sign in to comment.