Unit testing Zend Framework Models with PHPUnit

Posted by on Sep 20, 2012 in Test Driven Development | No Comments
Unit testing Zend Framework Models with PHPUnit

A new project created by the ZF command line tool (zf) will have a default IndexControllerTest in the tests folder. The test class inherits from Zend_Test_PHPUnit_ControllerTestCaseand provides a good example of how to test a controller.