From 73a647c1bfba93c3ce07a429bf15826a50f92ea8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 2 Jun 2016 06:18:49 +0200 Subject: php-horde-Horde-Imap-Client: skip tests when phpunit is too old --- php-horde-Horde-Imap-Client.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/php-horde-Horde-Imap-Client.spec b/php-horde-Horde-Imap-Client.spec index 3479713..e4a74a8 100644 --- a/php-horde-Horde-Imap-Client.spec +++ b/php-horde-Horde-Imap-Client.spec @@ -139,7 +139,11 @@ done | tee ../%{pear_name}.lang export LANG=fr_FR.utf8 cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g) -%{_bindir}/phpunit --verbose . +if %{_bindir}/phpunit --atleast-version 4.8; then + %{_bindir}/phpunit --verbose . +else + : PHPUnit is too old for this package +fi if which php70; then php70 %{_bindir}/phpunit --verbose . -- cgit