Skip to content

Commit

Permalink
Correct fix for #1956
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi authored and sebastianbergmann committed Nov 14, 2016
1 parent 1baca7a commit 0c1ae1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Util/PHP/Template/TestCaseMethod.tpl.dist
Expand Up @@ -58,7 +58,7 @@ function __phpunit_run_isolated_test()
$output = $test->getActualOutput();
}

rewind(STDOUT);
@rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */
if ($stdout = stream_get_contents(STDOUT)) {
$output = $stdout . $output;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Util/PHP/eval-stdin.php
@@ -1,3 +1,3 @@
<?php

eval('?>' . file_get_contents('php://input'));
eval('?>' . file_get_contents('php://stdin'));

0 comments on commit 0c1ae1b

Please sign in to comment.