From 064ccecd6be6dfe8ede762ad0bdd51f7c6a60072 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Oct 2010 03:41:34 +0000 Subject: [PATCH] ENHANCEMENT Allowing to run single tests via phpunit through new test bootstrap XML file (e.g. "phpunit sapphire/tests/api/RestfulServerTest.php" or "phpunit sapphire/tests/api") (from r111048) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112886 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/FullTestSuite.php | 11 +---------- tests/bootstrap.php | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100755 tests/bootstrap.php diff --git a/tests/FullTestSuite.php b/tests/FullTestSuite.php index a5b86d13c..c9c91f2b7 100644 --- a/tests/FullTestSuite.php +++ b/tests/FullTestSuite.php @@ -1,14 +1,5 @@ pushCurrent(); +@require_once('sapphire/tests/bootstrap.php'); class FullTestSuite { public static function get_tests() { diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100755 index 000000000..2673ed7ae --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,37 @@ +