diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-11-19 08:29:42 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-11-19 08:29:42 +0100 |
commit | b7d528d80e7340b34e34a8315146d3be9685a031 (patch) | |
tree | 2776d612f10ebcc4e4bf7963b3486185f0822562 | |
parent | fc6fd2de5b2522c65d5f32c3e17ddf8266809316 (diff) |
php-zendframework-zend-*: run test suite with PHP 7 when available
-rw-r--r-- | php-zendframework-zend-filter.spec | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/php-zendframework-zend-filter.spec b/php-zendframework-zend-filter.spec index 877ea7e..4cb63cc 100644 --- a/php-zendframework-zend-filter.spec +++ b/php-zendframework-zend-filter.spec @@ -129,8 +129,12 @@ Zend\\Loader\\AutoloaderFactory::factory(array( )))); require_once '%{php_home}/Zend/autoload.php'; EOF -%{_bindir}/php -r 'require "vendor/autoload.php"; var_dump(Zend\Loader\AutoloaderFactory::getRegisteredAutoloaders());' + %{_bindir}/phpunit --include-path=%{buildroot}%{php_home} + +if which php70; then + php70 %{_bindir}/phpunit --include-path=%{buildroot}%{php_home} +fi %else : Test suite disabled %endif |