mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Ensure PHPUnit 3.6 is available, show a nice message if not
This commit is contained in:
parent
b1e17578c7
commit
a1d676d353
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user