File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Framework/TestRunner/templates Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ function __phpunit_run_isolated_test()
8787 ini_set('xdebug.scream', '0');
8888
8989 // Not every STDOUT target stream is rewindable
90- @rewind(STDOUT);
90+ $hasRewound = @rewind(STDOUT);
9191
92- if ($stdout = @stream_get_contents(STDOUT)) {
92+ if ($hasRewound && $ stdout = @stream_get_contents(STDOUT)) {
9393 $output = $stdout . $output ;
9494 $streamMetaData = stream_get_meta_data(STDOUT);
9595
Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ function __phpunit_run_isolated_test()
8787 ini_set('xdebug.scream', '0');
8888
8989 // Not every STDOUT target stream is rewindable
90- @rewind(STDOUT);
90+ $hasRewound = @rewind(STDOUT);
9191
92- if ($stdout = @stream_get_contents(STDOUT)) {
92+ if ($hasRewound && $ stdout = @stream_get_contents(STDOUT)) {
9393 $output = $stdout . $output ;
9494 $streamMetaData = stream_get_meta_data(STDOUT);
9595
You can’t perform that action at this time.
0 commit comments