When running a PHPUnit test, I would like to be able to dump output so I can debug one or two things.
I have tried the following (similar to the PHPUnit Manual examp
In short, phpunit supresses STDOUT. It writes to STDERR by default, unless you add --verbose or --debug . You can do one of those things:
var_dump your debug as usual but add --verbose to the phpunit command linevar_dump your debug as usual but add a line ob_flush(); beneath itObviously, the last thing is the Good Thing to do, and the rest are quick temporary hacks.