PEAR is archived and read-only

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

Home » Testing » PHPUnit » Bug #4730

Cannot test php files in current directory (SetupDecorator)

Details

Submitted2005-07-02 15:10 UTC
Fromhelmi03 at gmail dot com
StatusBogus
PackagePHPUnit
PHP Version4.3.11
OSFreeBSD
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'))