News Feed
Sections




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

Sebastian Bergmann's Blog:
PHPUnit 3.5 Upgrading Woes
October 22, 2010 @ 07:42:23

If you've been having issues upgrading to the latest version of PHPUnit (v3.5), Sebastian Bergmann might have the answer to your problems that's related to the PEAR installer and this bug.

The new dependencies of the PHPUnit package, such as PHPUnit_MockObject for instance, are installed first. The PHPUnit package itself is installed last. And herein lies the problem: PHPUnit_MockObject installs the new version of MockObject/Generator.php before the PHPUnit package is upgraded. This upgrade deletes the MockObject/Generator.php file as it previously belonged to the PHPUnit package.

He includes two complete file listings showing the difference in the structure before and after the upgrade. The PEAR installer is at fault due to a misunderstanding it has about where the MockObject/Generator.php file belongs. The only way to fix this, currently, is to force install the new subpackages instead of just an update - DbUnit, PHPUnit_MockObject and PHPUnit_Selenium. Instructions and a resulting files tree are included so you can insure your install is correct.

0 comments voice your opinion now!
phpunit upgrade pear installer mockobject


blog comments powered by Disqus

Similar Posts

Evert Pot: MySQL 5.6 BOOL behavior when using PDO and prepared statements

Do It Yourself Web Development: Setting Up Composer PHP Dependencies Manager in Windows

NetTuts.com: Better Workflow in PHP With Composer, Namespacing, and PHPUnit

KillerSoft.com: Savant Gets Pearified

Tobias Schlitt's Blog: Why code coverage matters


Community Events





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


symfony opinion language tool series framework security package update release laravel composer version podcast install introduction community library voicesoftheelephpant interview

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