News Feed
Sections




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

Mike Purcell's Blog:
Use PHPUnit without PEAR
January 26, 2012 @ 09:48:00

Mike Purcell has a new post to his blog showing a method he's followed to be able to use the popular PHPUnit unit testing software without having to go through the PEAR installer to get there.

PHPUnit is a great tool to protect us developers from introducing new defects when adding new features or re-factoring code. However there is one HUGE downside to PHPUnit; it must be installed using PEAR. Personally, I don't like 'auto-installers', I'd prefer to know what exactly is happening behind the scenes with regards to which libraries are required and how they are being called. [...] After breaking down the PHPUnit source code, I realized it could be installed without going through PEAR, and without too much headache.

He walks you through the directories you'll need to set up (test/vendor), the commands you'll need to get the latest version and unpack it, changes to set up some symlinks and updating the PHPUnit source to modify the autoloader, bootstrap and phpunit executable.

0 comments voice your opinion now!
pear phpunit without installer autoinstall package management


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Battle of the Autoloaders: PSR-0 vs. PSR-4

Shashikant Jagtap's Blog: PHPUnit + Behat/Mink + Page Object: The Rockstar Combination of Testing

Community News: Latest PEAR Releases for 11.19.2007

WebReference.com: Globalize your Web Applications: PHP's Locale Package

Sebastian Bergmann\'s Blog: Code Coverage Reports with PHPUnit 3


Community Events





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


zendserver symfony list series framework deployment release community interview opinion laravel language library api podcast introduction update tips install package

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