From 4520fe918a3e0aec51db31aa07572755ec641ee0 Mon Sep 17 00:00:00 2001 From: Maurizio Moreo Date: Fri, 7 Apr 2023 17:19:34 +0200 Subject: [PATCH 1/2] Add PCOV availability check --- src/Support/Coverage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Support/Coverage.php b/src/Support/Coverage.php index db69fcab..55e544b4 100644 --- a/src/Support/Coverage.php +++ b/src/Support/Coverage.php @@ -42,6 +42,10 @@ final class Coverage return false; } + if ($runtime->hasPCOV()) { + return true; + } + if (! $runtime->hasXdebug()) { return true; } From 518035514e2f49a93671e1aebb82de0020b2c152 Mon Sep 17 00:00:00 2001 From: Maurizio Moreo Date: Sun, 9 Apr 2023 09:27:52 +0200 Subject: [PATCH 2/2] Add PHPDBG availability check --- src/Support/Coverage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Support/Coverage.php b/src/Support/Coverage.php index 55e544b4..526b15fa 100644 --- a/src/Support/Coverage.php +++ b/src/Support/Coverage.php @@ -46,6 +46,10 @@ final class Coverage return true; } + if ($runtime->hasPHPDBGCodeCoverage()) { + return true; + } + if (! $runtime->hasXdebug()) { return true; }