Federico Cargnelutti's Blog: Testing Zend Framework Action Contr...

Courtesy PHPDeveloper.org  Mon, 11/02/2009 - 07:58

In this new post to his blog today Federico Cargnelutti shows you how to use mock objects to unit test controllers in your Zend Framework application.

In this post I'll demonstrate a unit test technique for testing Zend Framework Action Controllers using Mock Objects.

Unit testing controllers independently has a number of advantages: you can develop controllers test-first (TDD), develop and test all of your controller code before developing any of the view scripts and helps you...


 

More related items

Madarco's DevBlog: Using Zend_Tool in Eclipse
On Madarco's DevBlog there's a new post looking at using the new Zend_Tool component of the Zend Framework from inside of the Eclipse IDE. Zend_Tool is a command line tool released with...

Odafe Ojenikoh's Blog: Interactive PHP CLI...
Odafe Ojenikoh has submitted a post he's written up showing how to create a command line PHP application with the help of the Zend Framework and it's Zend_Form elements. Over the weekend,...

Rob Allen's Blog: One-to-Many Joins with...
Rob Allen has a tip for the Zend Framework users out there using the Zend_Db module to connect to their database resources - how to do a one to many join with the help of...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com