Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Content with Style Blog:
Unit testing controllers with Zend Framework
Apr 14, 2009 @ 12:53:41

On the Content with Style blog Pascal has posted a new entry about testing your Zend Framework controllers with a combination of Zend_Test and the popular PHP unit testing software PHPUnit.

Unit testing your Zend Framework driven MVC applications is not hard at all. This post tries to give a brief overview on how to test your Controllers with Zend_Test.

There's only a few steps in his process - install PHPUnit, make a sample application to test (complete with controllers), run a test action against it and how to test the results of both normal posted values/a redirect and data manipulation in models.

tagged: zendframework test unittest phpunit zendtest controller

Link:


Trending Topics: