From 120fd5d564e6be396bfdb0215fb4929d644f2f2e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 6 Oct 2012 17:06:48 +0200 Subject: php-symfony2-HttpFoundation: always run tests --- php-symfony2-HttpFoundation.spec | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'php-symfony2-HttpFoundation.spec') diff --git a/php-symfony2-HttpFoundation.spec b/php-symfony2-HttpFoundation.spec index 0e479a4..79d1bd2 100644 --- a/php-symfony2-HttpFoundation.spec +++ b/php-symfony2-HttpFoundation.spec @@ -4,9 +4,6 @@ %global pear_channel pear.symfony.com %global pear_name %(echo %{name} | sed -e 's/^php-symfony2-//' -e 's/-/_/g') -# requires too recent PHPUnit 3.7 -%global with_tests %{?_with_tests:1}%{!?_with_tests:0} - Name: php-symfony2-HttpFoundation Version: 2.1.2 Release: 1%{?dist} @@ -22,9 +19,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-pear(PEAR) BuildRequires: php-channel(%{pear_channel}) -%if %{with_tests} -BuildRequires: php-pear(pear.phpunit.de/PHPUnit) > 3.7.0 -%endif +BuildRequires: php-pear(pear.phpunit.de/PHPUnit) Requires: php-common >= 5.3.2 Requires: php-pear(PEAR) @@ -85,13 +80,9 @@ install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} %check -%if %{with_tests} cd %{pear_name}-%{version}/Symfony/Component/%{pear_name}/Tests cp %{SOURCE1} bootstrap.php -phpunit --bootstrap bootstrap.php --verbose . -%else -: Tests skipped, missing --with tests option -%endif +phpunit --bootstrap bootstrap.php . %post -- cgit