Skip to content

Commit

Permalink
Merge pull request #772 from MaurizioMoreo/pcov_fix
Browse files Browse the repository at this point in the history
Add PCOV availability check
  • Loading branch information
nunomaduro committed Apr 16, 2023
2 parents 2e4206c + 5180355 commit 2ea37f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Support/Coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ public static function isAvailable(): bool
return false;
}

if ($runtime->hasPCOV()) {
return true;
}

if ($runtime->hasPHPDBGCodeCoverage()) {
return true;
}

if (! $runtime->hasXdebug()) {
return true;
}
Expand Down

0 comments on commit 2ea37f3

Please sign in to comment.