Bug 768418 - EPEL 6 php-phpunit-PHPUnit is too old to use with EPEL 6 php-pear-phing
Summary: EPEL 6 php-phpunit-PHPUnit is too old to use with EPEL 6 php-pear-phing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: php-phpunit-PHPUnit
Version: el6
Hardware: All
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-12-16 15:45 UTC by Paul Clifford
Modified: 2012-02-04 21:02 UTC (History)
1 user (show)

Fixed In Version: php-phpunit-PHPUnit-MockObject-1.1.1-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-04 21:02:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paul Clifford 2011-12-16 15:45:05 UTC
Description of problem:
EPEL 6 includes php-pear-phing-2.4.8 which requires PHPUnit >= 3.6.0 to run PHP Unit tasks:

$ rpm -q php-pear-phing
php-pear-phing-2.4.8-2.el6
$ grep 'requires.*version' /usr/share/pear/phing/tasks/ext/phpunit/PHPUnitTask.php
  throw new BuildException("PHPUnitTask requires PHPUnit version >= 3.6.0", $this->getLocation());

However, the EPEL 6 version of php-phpunit-PHPUnit is only 3.5.15 so it's not possible to use phing's PHPUnit support.

php-phpunit-PHPUnit-3.6.4-1 is available in the Fedora 16 updates repository, can this be rebuilt for EPEL 6?


Version-Release number of selected component (if applicable):

php-pear-phing-2.4.8-2.el6
php-phpunit-PHPUnit-3.5.15-1.el6


How reproducible:

Steps to Reproduce:
1. Create a "build.xml" file containing:
<?xml version="1.0"?>
<project name="Test" default="test">
 <phpunit haltonerror="true" haltonfailure="true" printsummary="true">
  <batchtest>
   <fileset dir="tests">
    <include name="**/*Test.php"/>
   </fileset>
  </batchtest>
 </phpunit>
</project>

2. Run: phing 2>&1 | grep Error
  
Actual results:

Error reading project file [wrapped: .../build.xml:3:48: PHPUnitTask requires PHPUnit version >= 3.6.0]


Expected results:

Error reading project file [wrapped: .../build.xml:3:48: Directory .../tests not found.]

(More normally you'd expect it to run various test files, but the key thing is it doesn't die due to the wrong version of PHPUnit.)


Additional info:

php-phpunit-PHPUnit-3.6.4-1 is available in Fedora 16: http://download.fedora.redhat.com/pub/fedora/linux/updates/16/SRPMS/php-phpunit-PHPUnit-3.6.4-1.fc16.src.rpm

Comment 1 Fedora Update System 2012-01-17 18:39:02 UTC
php-phpunit-DbUnit-1.1.1-1.el6,php-phpunit-File-Iterator-1.3.1-1.el6,php-phpunit-PHP-CodeCoverage-1.1.1-1.el6,php-phpunit-PHP-Invoker-1.0.1-1.el6,php-phpunit-PHP-TokenStream-1.1.2-1.el6,php-phpunit-PHPUnit-3.6.7-1.el6,php-phpunit-PHPUnit-Selenium-1.2.0-1.el6,php-phpunit-PHPUnit-MockObject-1.1.0-1.el6,php-phpunit-Text-Template-1.1.1-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/php-phpunit-DbUnit-1.1.1-1.el6,php-phpunit-File-Iterator-1.3.1-1.el6,php-phpunit-PHP-CodeCoverage-1.1.1-1.el6,php-phpunit-PHP-Invoker-1.0.1-1.el6,php-phpunit-PHP-TokenStream-1.1.2-1.el6,php-phpunit-PHPUnit-3.6.7-1.el6,php-phpunit-PHPUnit-Selenium-1.2.0-1.el6,php-phpunit-PHPUnit-MockObject-1.1.0-1.el6,php-phpunit-Text-Template-1.1.1-1.el6

Comment 2 Fedora Update System 2012-01-18 19:57:00 UTC
Package php-phpunit-DbUnit-1.1.1-1.el6, php-phpunit-File-Iterator-1.3.1-1.el6, php-phpunit-PHP-CodeCoverage-1.1.1-1.el6, php-phpunit-PHP-Invoker-1.0.1-1.el6, php-phpunit-PHP-TokenStream-1.1.2-1.el6, php-phpunit-PHPUnit-3.6.7-1.el6, php-phpunit-PHPUnit-Selenium-1.2.0-1.el6, php-phpunit-PHPUnit-MockObject-1.1.0-1.el6, php-phpunit-Text-Template-1.1.1-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing php-phpunit-DbUnit-1.1.1-1.el6 php-phpunit-File-Iterator-1.3.1-1.el6 php-phpunit-PHP-CodeCoverage-1.1.1-1.el6 php-phpunit-PHP-Invoker-1.0.1-1.el6 php-phpunit-PHP-TokenStream-1.1.2-1.el6 php-phpunit-PHPUnit-3.6.7-1.el6 php-phpunit-PHPUnit-Selenium-1.2.0-1.el6 php-phpunit-PHPUnit-MockObject-1.1.0-1.el6 php-phpunit-Text-Template-1.1.1-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0161/php-phpunit-DbUnit-1.1.1-1.el6,php-phpunit-File-Iterator-1.3.1-1.el6,php-phpunit-PHP-CodeCoverage-1.1.1-1.el6,php-phpunit-PHP-Invoker-1.0.1-1.el6,php-phpunit-PHP-TokenStream-1.1.2-1.el6,php-phpunit-PHPUnit-3.6.7-1.el6,php-phpunit-PHPUnit-Selenium-1.2.0-1.el6,php-phpunit-PHPUnit-MockObject-1.1.0-1.el6,php-phpunit-Text-Template-1.1.1-1.el6
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-01-19 16:43:53 UTC
Package php-phpunit-PHPUnit-MockObject-1.1.1-1.el6, php-phpunit-DbUnit-1.1.1-1.el6, php-phpunit-File-Iterator-1.3.1-1.el6, php-phpunit-PHP-CodeCoverage-1.1.1-1.el6, php-phpunit-PHP-Invoker-1.0.1-1.el6, php-phpunit-PHP-TokenStream-1.1.2-1.el6, php-phpunit-PHPUnit-3.6.7-1.el6, php-phpunit-PHPUnit-Selenium-1.2.0-1.el6, php-phpunit-Text-Template-1.1.1-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing php-phpunit-PHPUnit-MockObject-1.1.1-1.el6 php-phpunit-DbUnit-1.1.1-1.el6 php-phpunit-File-Iterator-1.3.1-1.el6 php-phpunit-PHP-CodeCoverage-1.1.1-1.el6 php-phpunit-PHP-Invoker-1.0.1-1.el6 php-phpunit-PHP-TokenStream-1.1.2-1.el6 php-phpunit-PHPUnit-3.6.7-1.el6 php-phpunit-PHPUnit-Selenium-1.2.0-1.el6 php-phpunit-Text-Template-1.1.1-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0161/php-phpunit-DbUnit-1.1.1-1.el6,php-phpunit-File-Iterator-1.3.1-1.el6,php-phpunit-PHP-CodeCoverage-1.1.1-1.el6,php-phpunit-PHP-Invoker-1.0.1-1.el6,php-phpunit-PHP-TokenStream-1.1.2-1.el6,php-phpunit-PHPUnit-3.6.7-1.el6,php-phpunit-PHPUnit-Selenium-1.2.0-1.el6,php-phpunit-PHPUnit-MockObject-1.1.1-1.el6,php-phpunit-Text-Template-1.1.1-1.el6
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-02-04 21:02:22 UTC
php-phpunit-PHPUnit-MockObject-1.1.1-1.el6, php-phpunit-DbUnit-1.1.1-1.el6, php-phpunit-File-Iterator-1.3.1-1.el6, php-phpunit-PHP-CodeCoverage-1.1.1-1.el6, php-phpunit-PHP-Invoker-1.0.1-1.el6, php-phpunit-PHP-TokenStream-1.1.2-1.el6, php-phpunit-PHPUnit-3.6.7-1.el6, php-phpunit-PHPUnit-Selenium-1.2.0-1.el6, php-phpunit-Text-Template-1.1.1-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


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