| Summary: | php Class 'File_Iterator' not found while running unit tests | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mark Slemko <mslemko> |
| Component: | php-phpunit-PHP-CodeCoverage | Assignee: | Remi Collet <fedora> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | fedora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-01 05:47:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
If you are stuck, a quick work-around is to add to file /usr/share/pear/File/Iterator/Factory.php on, say, line 44 require_once 'File/Iterator.php'; Which PHPUnit version ? The 3.6.x should work... Please also try latest versions in updates-testing - php-phpunit-PHP-Invoker-1.0.1-1.fc16 - php-phpunit-PHPUnit-3.6.4-1.fc16 Also, please give result of # rpm -qa php-phpunit\* | sort phpunit --version PHPUnit 3.5.15 by Sebastian Bergmann. rpm -qa php-phpunit\* | sort php-phpunit-DbUnit-1.0.3-1.fc15.noarch php-phpunit-File-Iterator-1.3.0-1.fc15.noarch php-phpunit-PHP-CodeCoverage-1.0.5-1.fc15.noarch php-phpunit-PHP-Timer-1.0.2-2.fc15.noarch php-phpunit-PHP-TokenStream-1.1.0-2.fc15.noarch php-phpunit-PHPUnit-3.5.15-1.fc15.noarch php-phpunit-PHPUnit-MockObject-1.0.9-1.fc15.noarch php-phpunit-PHPUnit-Selenium-1.0.3-1.fc15.noarch php-phpunit-Text-Template-1.1.0-2.fc15.noarch (In reply to comment #2) > Which PHPUnit version ? > The 3.6.x should work... I'm reluctant to use the 3.6 version until it is in the regular repository as it requires some test modifications and upgrades on all our dev servers. so : f15, not f16 *** This bug has been marked as a duplicate of bug 756513 *** |
Description of problem: Class 'File_Iterator' not found in /usr/share/pear/File/Iterator/Factory.php on line 105 Version-Release number of selected component (if applicable): Fedora 16 - recent update How reproducible: very Steps to Reproduce: 1. update to latest in repository 2. run phpunit with code coverage enabled 3. error occurs Actual results: PHP Fatal error: Class 'File_Iterator' not found in /usr/share/pear/File/Iterator/Factory.php on line 105 PHP Stack trace: PHP 1. {main}() /usr/bin/phpunit:0 PHP 2. require_once() /usr/bin/phpunit:45 PHP 3. PHP_CodeCoverage_Filter->addDirectoryToBlacklist() /usr/share/pear/PHPUnit/Autoload.php:68 PHP 4. File_Iterator_Factory->getFileIterator() /usr/share/pear/PHP/CodeCoverage/Filter.php:113 Expected results: no error Additional info: this was working until the recent update. It appears that the php paths are not resolving.