The other day I was working on a unit test that ran against a Zend Framework 1 controller and I couldn’t figure out what the actual contents of the body was. In order to get the full text, I had to dig into Zend_Test_PHPUnit_ControllerTestCase to determine I could access it using:

$this->response->outputBody();

For some reason I had a hard time finding this using Google so I figured I should document it here.

Like this post? Don't forget to follow us on Twitter and Facebook for updates.