We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33dc33 commit 6172aafCopy full SHA for 6172aaf
1 file changed
src/Runner/Job.php
@@ -11,7 +11,7 @@
11
12
use Tester\Helpers;
13
use function count, is_array, is_resource;
14
-use const DIRECTORY_SEPARATOR;
+use const DIRECTORY_SEPARATOR, PHP_OS_FAMILY;
15
16
17
/**
@@ -144,13 +144,15 @@ public function isRunning(): bool
144
return false;
145
}
146
147
- $this->test->stdout .= stream_get_contents($this->stdout);
148
-
149
$status = proc_get_status($this->proc);
150
if ($status['running']) {
+ if (PHP_OS_FAMILY !== 'Windows') {
+ $this->test->stdout .= stream_get_contents($this->stdout);
151
+ }
152
return true;
153
154
155
156
$this->duration += microtime(as_float: true);
157
158
fclose($this->stdout);
0 commit comments