diff options
-rw-r--r-- | php-sebastian-diff3.spec | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/php-sebastian-diff3.spec b/php-sebastian-diff3.spec index c1c6cc8..53fc4a2 100644 --- a/php-sebastian-diff3.spec +++ b/php-sebastian-diff3.spec @@ -84,14 +84,17 @@ cp -pr src %{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major} %check %if %{with_tests} mkdir vendor -touch vendor/autoload.php +%{_bindir}/phpab --output vendor/autoload.php tests +cat << 'EOF' | tee -a vendor/autoload.php +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Process', '%{php_home}/Symfony4/Component/Process'); +EOF : Run upstream test suite ret=0 -for cmd in php php70 php71 php72; do +for cmd in php php71 php72; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit6 --verbose || ret=1 + %{_bindir}/phpunit7 --verbose || ret=1 fi done exit $ret |