Home » Testing » PHPUnit2 » Bug #7770
TextUI/TestRunner::doSkeleton $skeleton not always an object
Details
| Submitted | 2006-05-31 14:22 UTC |
|---|---|
| From | mfischer at php dot net |
| Status | Closed |
| Package | PHPUnit2 |
| PHP Version | 5_1 CVS-2006-05-31 |
| OS | Linux Debian |
| Roadmaps | (Not assigned) |
Comments
[2006-05-31 14:22 UTC] mfischer at php dot net
Description:
------------
Running the example below gives a fatal error.
In doSkeleton(), a new instantiation of PHPUnit2_Util_Skeleton may fail, but in the catch block $skeleton is expected to be a valid object.
Test script:
---------------
mfischer@debian:~$ ls -ld Foo.php
ls: Foo.php: No such file or directory
mfischer@debian:~$ phpunit --skeleton Foo Foo.php
PHPUnit 3.0.0alpha4 by Sebastian Bergmann.
Could not open Foo.php.
Fatal error: Call to a member function getTestSourceFile() on a non-object in /home/mfischer/install/php-5.1/lib/php/PHPUnit2/TextUI/TestRunner.php on line 625
[2006-05-31 14: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.