Home » Testing » PHPUnit » Bug #4730
Cannot test php files in current directory (SetupDecorator)
Details
| Submitted | 2005-07-02 15:10 UTC |
|---|---|
| From | helmi03 at gmail dot com |
| Status | Bogus |
| Package | PHPUnit |
| PHP Version | 4.3.11 |
| OS | FreeBSD |
| Roadmaps | (Not assigned) |
Comments
[2005-07-02 15:10 UTC] helmi03 at gmail dot com
Description:
------------
Cannot test php files in current directory (SetupDecorator).
Buggy in version 1.2.3 but works for version 1.0.1.
v1.2.3: line 150
$className = str_replace(DIRECTORY_SEPARATOR, '_', $tmp);
v1.0.1:
$className = str_replace(DIRECTORY_SEPARATOR, '_', substr(str_replace($rootDir, '', $filename), 1));
If I backport (from 1.2.3 to 1.0.1) a line above, it works for me.
Reproduce code:
---------------
$gui->getSuitesFromDir('.', '.*\.php$', array('index.php'))