MDL-32323 require at least PHPUnit 3.6.0

This commit is contained in:
Petr Skoda
2012-04-10 15:27:11 +02:00
parent cbdf52baa5
commit b5b10866e2
2 changed files with 15 additions and 3 deletions
+8
View File
@@ -59,6 +59,14 @@ if (defined('CLI_SCRIPT')) {
}
define('CLI_SCRIPT', true);
$phpunitversion = PHPUnit_Runner_Version::id();
if ($phpunitversion === '@package_version@') {
// library checked out from git, let's hope dev knows that 3.6.0 is required
} else if (version_compare($phpunitversion, '3.6.0', 'lt')) {
phpunit_bootstrap_error(129, $phpunitversion);
}
unset($phpunitversion);
define('NO_OUTPUT_BUFFERING', true);
// only load CFG from config.php, stop ASAP in lib/setup.php