[Fedora-php-devel-list] PHPUnit 5

Remi Collet Fedora at FamilleCollet.com
Mon Sep 28 11:53:00 UTC 2015


Hi,

PHPUnit 5.0 should be released soon (October 2nd or December 4th ?)

This will raise PHP dependency to 5.6
(PHPUnit 6 will require PHP 7.0).

Which mean we'll have 3 diff versions for a few years...

PHPUnit 5.0 with PHP 5.6 in Fedora
PHPUnit 4.8, in EPEL-7
PHPUnit 3.7, in EPEL-6


To simplify generic spec maintainability, I just add a small feature in
5.0, and backported in 4.8 (in updates-testing)

So it could be simple to


  BuildRequires: php-composer(phpunit/phpunit)

  %check
  if phpunit --atleast-version 4.8; then
     phpunit --verbose
  else
     : PHPUnit is too old on this platform
  fi


Notice all versions < 4.8.9, without this feature, will simply fail
(unrecognized option) and so skip the test suite.


Hope this will help

Remi;


More information about the php-devel mailing list