summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-11-19 08:29:42 +0100
committerRemi Collet <fedora@famillecollet.com>2015-11-19 08:29:42 +0100
commit3067278ccfb93188838c1051aa02989f628f1309 (patch)
treefcd0a3850713f8a907ab77e5df377d25d9212070
parent6eb041ea41ee05969281d4a0ec58d33fe6b614a6 (diff)
php-zendframework-zend-*: run test suite with PHP 7 when available
-rw-r--r--php-zendframework-zend-file.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/php-zendframework-zend-file.spec b/php-zendframework-zend-file.spec
index 3bd4bc2..4f10ac6 100644
--- a/php-zendframework-zend-file.spec
+++ b/php-zendframework-zend-file.spec
@@ -119,7 +119,12 @@ Zend\\Loader\\AutoloaderFactory::factory(array(
))));
require_once '%{php_home}/Zend/autoload.php';
EOF
+
%{_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