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
Hackish, but works: Throw an exception with the debug output as its message.
class theTest extends PHPUnit_Framework_TestCase { public function testOutput() { throw new \Exception("hello"); } }
Yields:
... There was 1 error: 1) theTest::testOutput Exception: hello