Hi,
PHPUnit version 6.0.0 have just been released
I'm thinking on the best way to have it in Fedora.
Upstream changes:
- requires PHP 7
- introduce namespace
- drop deprecated methods
The last one is probably a blocker for us, as tons of packages raise warnings during the test suite about "getMock" usage.
Reminder:
PHPUnit 4.8 is EOL, so 4.8.34 (in epel-testing) will be the last one available there
PHPUnit 5.7 will be EOL in February 2018... in only 1 year (sadly even before the PHP 5 EOL...)
Do you think it worth to create an parallel installable version ?
This will need new reviews for
php-phpunit-dbunit3 version 3.0.0
php-phpunit-php-code-coverage5 version 5.0.0
php-phpunit-mock-objects4 version 4.0.0
phpcov version 4.0.0
phpunit version 6.0.0
But having 2 providers for php-composer(phpunit/phpunit) will be probably a bit hard, especially if we want to keep both command, so
/usr/bin/phpunit and /usr/bin/phpunit6
In all cases... seems we'll have to fix most of existing packages... :(
Any other ideas ? comment or feedback ?
Remi
Remi.
Le 03/02/2017 à 12:07, Remi Collet a écrit :
Hi,
PHPUnit version 6.0.0 have just been released
First set of packages available in my repo, if you want to test them.
- phpunit6-6.0.5-1 - php-phpunit-mock-objects4-4.0.0-1 - php-phpunit-php-code-coverage5-5.0.0-1
Never pulled if you don't BR phpunit6 (no composer provides)
Remi
P.S: download links: https://rpms.remirepo.net/fedora/25/remi/x86_64/repoview/phpunit6.html https://rpms.remirepo.net/fedora/25/remi/x86_64/repoview/php-phpunit-mock-ob... https://rpms.remirepo.net/fedora/25/remi/x86_64/repoview/php-phpunit-php-cod...
About compatibility.
Test suite designed for PHPUnit 5 won't run on PHPUnit 6
But, thanks to "forward compatibility", test suite designed for PHPUnit 6 will run on
PHPUnit 4.8.35 (EPEL-7, testing) PHPUnit 5.7.* (Fedora)
Minimal adaptation can be enough (simple case) Examples:
https://github.com/php-fedora/autoloader/commit/b548f49c56146f486e9fac8623df...
https://github.com/glpi-project/glpi/commit/1df387eb037214d9c0a419fbb013b76f...
Remi.
Reviews submitted:
#1420384: phpcov - CLI frontend for PHP_CodeCoverage #1420382: php-phpunit-dbunit3 - PHPUnit extension for database #1420381: phpunit6 - The PHP Unit Testing framework #1420378: php-phpunit-mock-objects4 - ock Object library for PHPUnit #1420374: php-phpunit-php-code-coverage5 - PHP code coverage information
php-devel@lists.fedoraproject.org