Attempt to fix failing unit tests that use runInSeparateProcess

This commit is contained in:
Marco van 't Wout
2024-06-04 15:02:40 +02:00
parent baf51652ca
commit 46405c43e6
2 changed files with 13 additions and 1 deletions

11
tests/phpunit_php83.patch Normal file
View File

@@ -0,0 +1,11 @@
--- a/src/Util/PHP/Template/TestCaseMethod.tpl.dist
+++ b/src/Util/PHP/Template/TestCaseMethod.tpl.dist
@@ -56,7 +56,7 @@
}
@rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */
- if ($stdout = stream_get_contents(STDOUT)) {
+ if ($stdout = @stream_get_contents(STDOUT)) {
$output = $stdout . $output;
}