Skip to content
Permalink
Browse files
Correct fix for #1956
  • Loading branch information
bwoebi committed Nov 13, 2016
1 parent 7b58ff0 commit 284a69fb88a2d0845d23f42974a583d8f59bf5a5
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Util/PHP/Template/TestCaseMethod.tpl.dist
  2. +1 −1 src/Util/PHP/eval-stdin.php
@@ -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;
}
@@ -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.