response objects

Ibuildings Blog: Zend Framework testing: emulating HTTP calls

PHPDeveloper.org  Fri, 08/29/2008 - 15:26

On the Ibuildings blog today Lorenzo Alberton takes a look at the Zend Framework, specifically as to how it can mimic regular HTTP calls with the built-in components.


 

Zend Framework testing: emulating HTTP calls - Ibuildings Blog

Planet PHP  Fri, 08/29/2008 - 06:53

Following last month's article by Ian, here's some thoughts on how to test a Zend Framework application.

One of the unit testing best practices suggests to break dependencies, so you can test each component separately.


 

Testing Zend Framework MVC Applications - Matthew Weier O'Phinne...

Planet PHP  Mon, 06/30/2008 - 11:00

Since I originally started hacking on the Zend Framework MVC in the fall of 2006, I've been touting the fact that you can test ZF MVC projects by utilizing the Request and Response objects; indeed, this is what I actually did to test the Front Controller and Dispatcher.

However, until recently, there was never an easy way to do so in your userland projects; the default request and response objects make it difficult to easily and quickly setup tests, and the methods introduced into the front controller to make it testable are largely undocumented.