Add debug flag to flush output #378

Merged
merged 1 commit into from Dec 15, 2011

Projects

None yet

4 participants

@shama
Contributor
shama commented Dec 15, 2011

Add ability to add debug=1 to trigger output flushing when testing with PHPUnit 3.6's output swallowing.
Thanks for the idea @lorenzo!

@markstory markstory merged commit 33773a9 into cakephp:2.0 Dec 15, 2011
@lorenzo
Member

Is this documented? :p

Member

Not yet. I don't really get why people use the webrunner anymore, but that's just me.

Is there any chance to make the ob_flush() activated by default when running tests from web? I think it would be more consistent with previous versions of Cake. Most people expect to see pr(), echo() and debug() showed on screen and when that doesn’t happens we have to search a lot before to know what’s happening. Thanks!

Member

One drawback to outputting directly is you cannot send headers/cookies/sessions which makes it no different than using the command line runner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment