sebastianbergmann/phpunit — Issue #411: Remove output buffering
Author: beberlei
Created: 2011-11-17 07:58:56+00:00
State: open

Since PHPUnit 3.6 the testsuites run with output buffering, any echo or var_dump will be shredded unless you specify --debug.

Now i think phpunit defaults should be configured to make it developers easier using it, not integration or CI machines. Personally when i develop i debug my code in PHPUnit, which is now very inconvenient. I run phpunit without debug, realizing i have to run it with --debug again (loosing time). Then the testnames get printed into the result, so for every test I have 2 lines already, which makes debugging larger testsuites a pain.

I vote for a new phpunit.xml configuration output-buffer which is false by default, and have echo, print, var_dump show the output on the screen again for the developers without hazzle.