BUGFIX Ensure PHPUnit 3.6 is available, show a nice message if not

This commit is contained in:
Sean Harvey 2012-05-09 23:40:25 +12:00
parent b1e17578c7
commit a1d676d353
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,12 @@
// Make sure display_errors is on
ini_set('display_errors', 1);
// Check we're using at least PHPUnit 3.6
if(version_compare(PHPUnit_Runner_Version::id(), '3.6', '<')) {
echo 'PHPUnit 3.6 required to run tests using bootstrap.php';
die();
}
// Fake the script name and base
global $_SERVER;
if (!$_SERVER) $_SERVER = array();