Bug 768418

Summary: EPEL 6 php-phpunit-PHPUnit is too old to use with EPEL 6 php-pear-phing
Product: [Fedora] Fedora EPEL Reporter: Paul Clifford <paul.clifford+redhat>
Component: php-phpunit-PHPUnitAssignee: Remi Collet <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-phpunit-PHPUnit-MockObject-1.1.1-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-04 21:02:22 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 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.