Skip to content

Commit

Permalink
Correct fix for sebastianbergmann#1956
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Nov 13, 2016
1 parent 7b58ff0 commit 284a69f
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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

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

0 comments on commit 284a69f

Please sign in to comment.