Bug 758832 - php Class 'File_Iterator' not found while running unit tests
Summary: php Class 'File_Iterator' not found while running unit tests
Keywords:
Status: CLOSED DUPLICATE of bug 756513
Alias: None
Product: Fedora
Classification: Fedora
Component: php-phpunit-PHP-CodeCoverage
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-30 19:32 UTC by Mark Slemko
Modified: 2011-12-01 05:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-01 05:47:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark Slemko 2011-11-30 19:32:49 UTC
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.

Comment 1 Mark Slemko 2011-11-30 19:41:19 UTC
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';

Comment 2 Remi Collet 2011-11-30 19:42:06 UTC
Which PHPUnit version ?
The 3.6.x should work...

Comment 3 Remi Collet 2011-11-30 19:47:34 UTC
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

Comment 4 Remi Collet 2011-11-30 19:53:59 UTC
Also, please give result of 
# rpm -qa php-phpunit\* | sort

Comment 5 Mark Slemko 2011-11-30 22:58:00 UTC
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

Comment 6 Mark Slemko 2011-11-30 23:17:48 UTC
(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.

Comment 7 Remi Collet 2011-12-01 05:44:51 UTC
so : f15, not f16

Comment 8 Remi Collet 2011-12-01 05:47:16 UTC

*** This bug has been marked as a duplicate of bug 756513 ***


Note You need to log in before you can comment on or make changes to this bug.