pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: Test code or tested code closed output buffers other than its own

Open remco-pc opened this issue 1 year ago • 1 comments

What Happened

i am using ob_get_clean() and i think this is causing that error ?

How to Reproduce

not sure, don't want to spent much time on this yet... do i need to start an new output buffer after ob_get_clean to avoid this error ?

Sample Repository

No response

Pest Version

v3.0.6

PHP Version

8.3.11

Operation System

Linux

Notes

No response

remco-pc avatar Sep 12 '24 14:09 remco-pc

what also could added is perhaps a flag to allow-risky-operations because the test results arent smart. i am missing the real test results because your program wants to complain about what you think is risky instead of showing the output of the running tests.

remco-pc avatar Sep 28 '24 11:09 remco-pc

some part of your test or tested code is closing standard output (stdout) or standard error (stderr) buffers.

nunomaduro avatar Aug 03 '25 21:08 nunomaduro