[packages/composer] disable tests that require newer phpunit
glen
glen at pld-linux.org
Thu Nov 26 13:50:16 CET 2015
commit e0a7614407df7c1312804ba1acff1d788f8cd21c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Nov 26 14:48:55 2015 +0200
disable tests that require newer phpunit
composer.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/composer.spec b/composer.spec
index b78e229..c1fc1c7 100644
--- a/composer.spec
+++ b/composer.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-%bcond_with tests # build with tests
+%bcond_without tests # build with tests
# NOTE
# - release tarballs: http://getcomposer.org/download/
@@ -105,6 +105,15 @@ ln -s src/Composer/res
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+# needs newer phpunit:
+# missing method PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturn()
+rm tests/Composer/Test/EventDispatcher/EventDispatcherTest.php
+rm tests/Composer/Test/IO/ConsoleIOTest.php
+rm tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
+rm tests/Composer/Test/Package/RootAliasPackageTest.php
+rm tests/Composer/Test/Package/Version/VersionGuesserTest.php
+rm tests/Composer/Test/Util/GitHubTest.php
+
%build
%if %{with tests}
phpab -n -o src/bootstrap.php -e '*/Fixtures/*' src/ tests/
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/composer.git/commitdiff/e0a7614407df7c1312804ba1acff1d788f8cd21c
More information about the pld-cvs-commit
mailing list