News Feed
Sections




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

Avnet Labs Blog:
TDD with Zend Framework - testing controllers
November 19, 2009 @ 09:37:40

On the Avnet Labs blog today Ekerete has posted a look at test-driven design with Zend Framework applications (controllers) and PHPUnit. This is the second part of a series of articles on the topic (here's part one).

In the first part of this series we set up our Zend Framework application and specified our requirements. In this part we'll tackle the first requirement '" as a user, I want to visit the home page and see a form where I can enter my full name and email address.

The tutorial shows how to write tests to check the based index controller and how to check the email newsletter enrollment page for the correct form fields. Code snippets for the tests and the controller/forms are also included.

0 comments voice your opinion now!
ttd testdrivendesign controller zendframework


blog comments powered by Disqus

Similar Posts

Rob Allen's Blog: Simplified Chinese Version of my Zend Auth Tutorial

Padraic Brady's Blog: New Zend_Feed_Writer Component And Zend_Feed_Reader Enhancements (ZF 1.10)

Zend Developer Zone: Indexing Email Messages with PHP, Zend Lucene and Sphinx

Kapustabrothers.com: Indexing PDF Documents with Zend_Search_Lucene

Alex Netkachov's Blog: PHP fluent API tips


Community Events

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


conference framework introduction voicesoftheelephpant api community opinion extension series language library unittest interview laravel podcast laravel5 video development release psr7

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