@runInSeparateProcess
and @preserveGlobalState disabled
fails with unserialize()
exception when writing to php://stdout
#5151
Labels
feature/process-isolation
Issues related to running tests in separate PHP processes
type/bug
Something is broken
Summary
When running a test with the annotations
@runInSeparateProcess
and@preserveGlobalState disabled
that includes (directly or indirectly) some writing tophp://stdout
the test fails withErrorException: unserialize(): Error at offset 0 of 5 bytes in /vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:289
Current behavior
The test fails with the following output:
How to reproduce
Expected behavior
The test should not error.
composer info
The text was updated successfully, but these errors were encountered: