News Feed
Sections




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

PHP in Action Blog:
Testing a Zend Framework action controller with View Helpers
June 11, 2008 @ 07:56:11

On the PHP in Action blog, there's a new post about a method for testing a controller as a part of a Zend Framework application with its own view helpers.

I came across a Zend Framework (ZF) example I wanted to refactor. You really have to have unit test coverage to refactor effectively, and since there were no tests, I started trying to find out how to test it. There didn't seem to be a wealth of information available on the web, so I've tried to figure it out by myself.

He walks through the testing process he followed - making some new default objects (for SimpleTest) and, using the flash messenger view helper, makes some mock classes to simulate sending the flash messages in an application.

0 comments voice your opinion now!
zendframwork simpletest unittest controller view helper


blog comments powered by Disqus

Similar Posts

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 2: View Helper Pattern

Marco Tabini's Blog: The easiest way to add unit test to your application

CodeSnipers.com: Stupidly Easy MVC - Group Membership Application (Part 2)

Robert Basic's Blog: Starting with Zend Framework - part 2

NetBeans Blog: Code coverage for PHP - why not?


Community Events





Don't see your event here?
Let us know!


code refactor interview wordpress series language testing threedevsandamaybe developer laravel introduction podcast install framework community experience release list unittest opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework