PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Testing » PHPUnit2 » Bug #6954

Recursive dependency

Details

Submitted2006-02-27 22:01 UTC
Fromohrmann at php dot net
Assignedsebastian
StatusClosed
PackagePHPUnit2
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2006-02-27 22:01 UTC] ohrmann at php dot net

Description:
------------
It seems that the 'PHPUnit2/Framework/TestCase.php' has an recursive dependency with 'PHPUnit2/Framework/Warning.php' by the files 'PHPUnit2/Framework/TestResult.php' and 'PHPUnit2/Framework/TestSuite.php'.

Test script:
---------------
php -r "require_once 'PHPUnit2/Framework/TestCase.php';"

Expected result:
----------------
No error

Actual result:
--------------
Fatal error: Class 'PHPUnit2_Framework_TestCase' not found in <path to pear>\PHPUnit2\Framework\Warning.php on line 72

[2006-02-28 10:38 UTC] sebastian at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

PHPUnit 3.0 should no longer suffer from this.