mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
Attempt to fix failing unit tests that use runInSeparateProcess
This commit is contained in:
11
tests/phpunit_php83.patch
Normal file
11
tests/phpunit_php83.patch
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user