News Feed
Sections




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

Christer Edvartsen's Blog:
Running Multiple Versions of PHPUnit
December 05, 2011 @ 12:26:18

Christer Edvartsen has a recent post showing you how to get multiple PHPUnit versions installed and working on your application. There's been some issues lately due to some updates in recent PHPUnit versions:

The latest version of PHPUnit (3.6.4 at the time of this writing) does not play well with the Zend Framework extensions (Zend_Test_PHPUnit). After asking Matthew Weier O'Phinney about this he answered that they had standardized on PHPUnit-3.4 for ZF1. Having just upgraded to the latest version of PHPUnit on our servers we were no longer able to test our Zend Framework applications. One option was to downgrade PHPUnit, but since we were already using some of the new features this was not going to happen.

He method uses the "installroot" option that can be passed in to the PHPUnit installation process to point it to someplace other than the default PEAR install location. A small change is needed to the "phpunit" executable to have it correctly set the include path. Then it's just a matter of making a symlink to your "/usr/bin" directory pointing to the specific version.

0 comments voice your opinion now!
multiple version phpunit unittest installroot option


blog comments powered by Disqus

Similar Posts

Chris Shiflett\'s Blog: JApacheCon (Power PHP Testing talk)

NetBeans Blog: UI for PHPUnit support

Brian Swan's Blog: Automating PHPUnit Tests in Windows Azure

/Dev/Hell Podcast: Episode 30: It's Episode 30, You Guys

Sebastian Bergmann's Blog: PHPUnit 3.0 (Release)


Community Events

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


conference version symfony2 api laravel community php7 release framework extension voicesoftheelephpant series introduction opinion library performance interview xdebug example podcast

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