diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 00af634fa..6001cbd79 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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();