From e64a9dd686dc12d7befc8bbc9bb7abeb9fe2ca48 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 16 Sep 2023 14:25:57 +0200 Subject: [PATCH] Fix CS/WS issues --- src/Util/PHP/Template/TestCaseClass.tpl | 1 + src/Util/PHP/Template/TestCaseMethod.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Util/PHP/Template/TestCaseClass.tpl b/src/Util/PHP/Template/TestCaseClass.tpl index d352646783d..bfcaed7fdcf 100644 --- a/src/Util/PHP/Template/TestCaseClass.tpl +++ b/src/Util/PHP/Template/TestCaseClass.tpl @@ -59,6 +59,7 @@ function __phpunit_run_isolated_test() } ini_set('xdebug.scream', '0'); + @rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */ if ($stdout = @stream_get_contents(STDOUT)) { $output = $stdout . $output; diff --git a/src/Util/PHP/Template/TestCaseMethod.tpl b/src/Util/PHP/Template/TestCaseMethod.tpl index 9dd6c92034e..94545ff8705 100644 --- a/src/Util/PHP/Template/TestCaseMethod.tpl +++ b/src/Util/PHP/Template/TestCaseMethod.tpl @@ -62,6 +62,7 @@ function __phpunit_run_isolated_test() } ini_set('xdebug.scream', '0'); + @rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */ if ($stdout = @stream_get_contents(STDOUT)) { $output = $stdout . $output;