Howdy,
When building locally RPM,
nice to run upstream test suite both with PHP 5 and PHP 7.
1/ use "php70" Software Collection from my repository
dnf --enablerepo=remi-php70 install php70
Notice: you also need to install all needed extensions
2/ add conditional to run the test suite
: Run upstream test suite
%{_bindir}/phpunit --verbose
if which php70; then
php70 %{_bindir}/phpunit --verbose
fi
This will be, of course, ignored in mock/koji
Remi.
Example:
+ : Run upstream test suite
+ /usr/bin/phpunit --verbose
PHPUnit 5.0.9 by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.15
Configuration:
/dev/shm/BUILD/Autoload-19513be5913ed780836e3df5e68bfb5655630612/phpunit.xml.dist
Error: No code coverage driver is available
................................................................. 65 /
78 ( 83%)
............. 78 /
78 (100%)
Time: 61 ms, Memory: 5.50Mb
OK (78 tests, 151 assertions)
+ which php70
/usr/bin/php70
+ php70 /usr/bin/phpunit --verbose
PHPUnit 5.0.9 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.0RC7 with Xdebug 2.4.0beta1
Configuration:
/dev/shm/BUILD/Autoload-19513be5913ed780836e3df5e68bfb5655630612/phpunit.xml.dist
................................................................. 65 /
78 ( 83%)
............. 78 /
78 (100%)
Time: 272 ms, Memory: 4.00Mb
OK (78 tests, 151 assertions)