Skip to content

Commit f2e26f5

Browse files
Revert "Remove code that was needed back when phpunit/php-code-coverage supported PHPDBG as a provider of code coverage data"
This reverts commit 55d9e26.
1 parent 6de743d commit f2e26f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Util/PHP/AbstractPhpProcess.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace PHPUnit\Util\PHP;
1111

1212
use const PHP_BINARY;
13+
use const PHP_SAPI;
1314
use function array_keys;
1415
use function array_merge;
1516
use function assert;
@@ -182,6 +183,14 @@ public function getCommand(array $settings, ?string $file = null): array
182183

183184
$command = array_merge($command, $this->settingsToParameters($settings));
184185

186+
if (PHP_SAPI === 'phpdbg') {
187+
$command[] = '-qrr';
188+
189+
if (!$file) {
190+
$command[] = 's=';
191+
}
192+
}
193+
185194
if ($file) {
186195
$command[] = '-f';
187196
$command[] = $file;

0 commit comments

Comments
 (0)