Lorenzo Alberton shares his thoughts on Zend Framework testing. He includes codes to emulate HTTP Calls. He used HTTP stub class instead to detach the models from the web services.
One of the unit testing best practices suggests to break dependencies, so you can test each component separately. The first problem that arises when you want to test controllers might be having a tighter control over the HTTP Request and Response objects.
Tags: PHP



















