Bug 756513
Summary: | php-phpunit-File-Iterator 1.3 is not compatible with php-phpunit-PHPUnit 3.5 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jon Dufresne <jon.dufresne> |
Component: | php-phpunit-File-Iterator | Assignee: | Christof Damian <christof> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | christof, fedora, guillaume, menthos, mslemko |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | php-phpunit-PHPUnit-MockObject-1.1.1-1.fc15 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-02-04 23:50:14 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jon Dufresne
2011-11-23 20:02:51 UTC
Output from the latest version demonstrating the error' $ phpunit 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 Fatal error: Class 'File_Iterator' not found in /usr/share/pear/File/Iterator/Factory.php on line 105 Call Stack: 0.0002 631800 1. {main}() /usr/bin/phpunit:0 0.0009 749160 2. require_once('/usr/share/pear/PHPUnit/Autoload.php') /usr/bin/phpunit:45 0.0011 775880 3. PHP_CodeCoverage_Filter->addDirectoryToBlacklist() /usr/share/pear/PHPUnit/Autoload.php:68 0.0011 775880 4. File_Iterator_Factory->getFileIterator() /usr/share/pear/PHP/CodeCoverage/Filter.php:113 *** Bug 758832 has been marked as a duplicate of this bug. *** Because of new autoload feature in phpunit stack, this break API. That's the reason why I have only plan to update PHPUnit 3.6 only in F16. We need to fix this issue, in f15 and f16. @Christof, I see 2 solutions - downgrade File_Iterator - upgrade PHPUnit stack (about 8 packages) The second is probably the simplest, despite the API break. => f15 and el6 (f16 is ok) (In reply to comment #3) > Because of new autoload feature in phpunit stack, this break API. > > That's the reason why I have only plan to update PHPUnit 3.6 only in F16. > > We need to fix this issue, in f15 and f16. > > @Christof, I see 2 solutions > - downgrade File_Iterator > - upgrade PHPUnit stack (about 8 packages) > > The second is probably the simplest, despite the API break. It is annoying that sebastian broke backward compatibility as other tools are using this too. I am away until the 12th, if there is any way for you to fix this before it would be appreciated. php-phpunit-DbUnit-1.1.1-1.fc15,php-phpunit-File-Iterator-1.3.1-1.fc15,php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15,php-phpunit-PHP-Invoker-1.0.1-1.fc15,php-phpunit-PHP-TokenStream-1.1.2-1.fc15,php-phpunit-PHPUnit-3.6.7-1.fc15,php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15,php-phpunit-PHPUnit-MockObject-1.1.0-1.fc15,php-phpunit-Text-Template-1.1.1-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/php-phpunit-DbUnit-1.1.1-1.fc15,php-phpunit-File-Iterator-1.3.1-1.fc15,php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15,php-phpunit-PHP-Invoker-1.0.1-1.fc15,php-phpunit-PHP-TokenStream-1.1.2-1.fc15,php-phpunit-PHPUnit-3.6.7-1.fc15,php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15,php-phpunit-PHPUnit-MockObject-1.1.0-1.fc15,php-phpunit-Text-Template-1.1.1-1.fc15 Package php-phpunit-DbUnit-1.1.1-1.fc15, php-phpunit-File-Iterator-1.3.1-1.fc15, php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15, php-phpunit-PHP-Invoker-1.0.1-1.fc15, php-phpunit-PHP-TokenStream-1.1.2-1.fc15, php-phpunit-PHPUnit-3.6.7-1.fc15, php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15, php-phpunit-PHPUnit-MockObject-1.1.0-1.fc15, php-phpunit-Text-Template-1.1.1-1.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing php-phpunit-DbUnit-1.1.1-1.fc15 php-phpunit-File-Iterator-1.3.1-1.fc15 php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15 php-phpunit-PHP-Invoker-1.0.1-1.fc15 php-phpunit-PHP-TokenStream-1.1.2-1.fc15 php-phpunit-PHPUnit-3.6.7-1.fc15 php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15 php-phpunit-PHPUnit-MockObject-1.1.0-1.fc15 php-phpunit-Text-Template-1.1.1-1.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0687/php-phpunit-DbUnit-1.1.1-1.fc15,php-phpunit-File-Iterator-1.3.1-1.fc15,php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15,php-phpunit-PHP-Invoker-1.0.1-1.fc15,php-phpunit-PHP-TokenStream-1.1.2-1.fc15,php-phpunit-PHPUnit-3.6.7-1.fc15,php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15,php-phpunit-PHPUnit-MockObject-1.1.0-1.fc15,php-phpunit-Text-Template-1.1.1-1.fc15 then log in and leave karma (feedback). Package php-phpunit-PHPUnit-MockObject-1.1.1-1.fc15, php-phpunit-DbUnit-1.1.1-1.fc15, php-phpunit-File-Iterator-1.3.1-1.fc15, php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15, php-phpunit-PHP-Invoker-1.0.1-1.fc15, php-phpunit-PHP-TokenStream-1.1.2-1.fc15, php-phpunit-PHPUnit-3.6.7-1.fc15, php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15, php-phpunit-Text-Template-1.1.1-1.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing php-phpunit-PHPUnit-MockObject-1.1.1-1.fc15 php-phpunit-DbUnit-1.1.1-1.fc15 php-phpunit-File-Iterator-1.3.1-1.fc15 php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15 php-phpunit-PHP-Invoker-1.0.1-1.fc15 php-phpunit-PHP-TokenStream-1.1.2-1.fc15 php-phpunit-PHPUnit-3.6.7-1.fc15 php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15 php-phpunit-Text-Template-1.1.1-1.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0687/php-phpunit-DbUnit-1.1.1-1.fc15,php-phpunit-File-Iterator-1.3.1-1.fc15,php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15,php-phpunit-PHP-Invoker-1.0.1-1.fc15,php-phpunit-PHP-TokenStream-1.1.2-1.fc15,php-phpunit-PHPUnit-3.6.7-1.fc15,php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15,php-phpunit-PHPUnit-MockObject-1.1.1-1.fc15,php-phpunit-Text-Template-1.1.1-1.fc15 then log in and leave karma (feedback). php-phpunit-PHPUnit-MockObject-1.1.1-1.fc15, php-phpunit-DbUnit-1.1.1-1.fc15, php-phpunit-File-Iterator-1.3.1-1.fc15, php-phpunit-PHP-CodeCoverage-1.1.1-1.fc15, php-phpunit-PHP-Invoker-1.0.1-1.fc15, php-phpunit-PHP-TokenStream-1.1.2-1.fc15, php-phpunit-PHPUnit-3.6.7-1.fc15, php-phpunit-PHPUnit-Selenium-1.2.0-1.fc15, php-phpunit-Text-Template-1.1.1-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |