From 46db65ed0708822ca35ebc44d71c0d18e53acc72 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Tue, 7 Jan 2014 10:30:49 +0100 Subject: [PATCH] Update PHPUnit version check to 3.7.0 assertContainsOnlyInstancesOf has been added in PHPUnit 3.7.0, so we need to have that version for running the tests. Bug: 59759 Change-Id: I25dbd377b97ec0b9062d3c8cf495ba3f06956ac4 --- tests/phpunit/phpunit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index 401b8a8658..039cabbd7f 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -108,9 +108,9 @@ if ( !class_exists( 'PHPUnit_Runner_Version' ) ) { } if ( PHPUnit_Runner_Version::id() !== '@package_version@' - && version_compare( PHPUnit_Runner_Version::id(), '3.6.7', '<' ) + && version_compare( PHPUnit_Runner_Version::id(), '3.7.0', '<' ) ) { - die( 'PHPUnit 3.6.7 or later required, you have ' . PHPUnit_Runner_Version::id() . ".\n" ); + die( 'PHPUnit 3.7.0 or later required, you have ' . PHPUnit_Runner_Version::id() . ".\n" ); } if ( !class_exists( 'PHPUnit_TextUI_Command' ) ) { -- 2.20.1