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

Rob Allen's Blog:
Unit testing Zend Framework 1
May 01, 2012 @ 10:54:51

Rob Allen has a new post (a quick introduction) about working with the unit tests in the Zend Framework (version 1), how to get PHPUnit working and execute the tests.

As part of our release process for Zend Framework 1.12, I've been working through the unit tests and running them on PHP 5.2.4 as it seems that recent changes weren't being tested with that version. This isn't totally surprising as Open Source contributors are, almost by definition, interested in new things and so are much more likely to be running PHP 5.4 rather than 5.2!

Since there's a compatibility issue between the tests and the current versions of PHPUnit, he shows you how to install the 3.4 version instead following these instructions. Then, to run the tests, it's a simple call to execute this PHPUnit version with options for outputting to the "standard error", setting an infinite memory limit and pointing to the tests for your component of choice.

0 comments voice your opinion now!
unittest zendframework phpunit version incompatible tutorial


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend Framework

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 12)

Robert Basic's Blog: Listening to Dbus signals with PHP

Jachim Coudenys: Using multiple databases in phpunit/dbunit with Composer

ProDevTips.com: Writing a CMS/Community with Smarty and the Zend Framework: Part 6


Community Events











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


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

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