From: Adrian Lang Date: Tue, 7 Jan 2014 09:30:49 +0000 (+0100) Subject: Update PHPUnit version check to 3.7.0 X-Git-Tag: 1.31.0-rc.0~17354 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=46db65ed0708822ca35ebc44d71c0d18e53acc72;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ) ) {