From a1d676d3532dc6eacdce73070e13cda4b6b8eb60 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 9 May 2012 23:40:25 +1200 Subject: [PATCH] BUGFIX Ensure PHPUnit 3.6 is available, show a nice message if not --- tests/bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) 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();