Use of mocks swallows output #5338
Labels
feature/test-doubles
Test Stubs and Mock Objects
status/waiting-for-feedback
Waiting for feedback from original reporter
type/bug
Something is broken
version/10
Something affects PHPUnit 10
Summary
Similar to #5278, I'm getting the same problem still but only in test methods that make use of the mocking library and assertions.
Current behavior
I was making this test method for a tutorial (So it's not best practice-y):
If I uncomment the
assertCount()
statement, the output fromprint __METHOD__
disappears. If I comment that line out, print/var_dump/etc. generate the expected output.Of note, in another test method in the same class I can generate output and run assertions at the same time, no problem:
How to reproduce
See above.
Expected behavior
Output should be printed to the screen regardless.
The text was updated successfully, but these errors were encountered: