News Feed
Jobs Feed
Sections




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

Matthew Weier O'Phinney's Blog:
Testing Zend Framework MVC Applications
July 01, 2008 @ 12:05:32

Matthew Weier O'Phinney has posted about a project he undertook to make it simple to test "userland projects" built with the Zend Framework as easy to test as the framework's own Front Controller and Dispatcher.

One of my ongoing projects the past few months has been to create an infrastructure for functional testing of ZF projects using PHPUnit. This past weekend, I made the final commits that make this functionality feature complete.

This new functionality allows you to create stub test case classes, use a Zend_Dom_Query object with CSS selectors/XPath for queries and makes available a special PHPUnit test case that handles the interface between some of the custom functionality (boostrapping, dispatching requests, etc) and PHPUnit.

He includes a sample test case that has assertions for calls to a controller with an action, that a page contains a login form and that a page creates a session and redirects to a profile page.

You can get this functionality from the incubator on the subversion repository for the project.

0 comments voice your opinion now!
testing zendframework application phpunit testcase


blog comments powered by Disqus

Similar Posts

Job Posting: Active Media Architects Seeks PHP Web Application Programmer (St. Clair Shores, MI)

PHPBuilder.com: Boost PHP Site Performance with Zend Framework Data Caching

MaltBlue.com: Why Testing Makes a Project Successful and You Canít Afford to Deny It

Jason Hinkle's Blog: Build a Backbone.js Application with PHP

LoLoCoJr Blog: Rewriting a (large) PHP application in Rails, part 2


Community Events











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


hhvm facebook application release unittest component framework introduction security package language podcast performance project hack composer install database example symfony2

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