From b40e3709137c665e32ad81fa523d71b4bc6c49ad Mon Sep 17 00:00:00 2001 From: Shawn Iwinski Date: Mon, 13 Mar 2017 18:24:53 -0400 Subject: [PATCH] Fix el6 --- php-fedora-autoloader.spec | 4 ++++ 1 file changed, 4 insertions(+) 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