diff --git a/php-fedora-autoloader.spec b/php-fedora-autoloader.spec index 641f9b2..fe23f45 100644 --- a/php-fedora-autoloader.spec +++ b/php-fedora-autoloader.spec @@ -115,6 +115,10 @@ cp -p res/phpab/fedora.php.tpl %{buildroot}%{phpab_template_dir}/ %check %if %{with_tests} +%if 0%{?el6} +find tests -type f -print0 | xargs -0 sed -i 's/extends TestCase/extends \\PHPUnit_Framework_TestCase/' +%endif + RETURN_CODE=0 for PHP_EXEC in php %{?rhel:php54 php55} php56 php70 php71; do if which $PHP_EXEC; then