From 1caedebafe1654bb12a96498733864170e00f048 Mon Sep 17 00:00:00 2001 From: Luke Hudson Date: Mon, 1 Mar 2010 03:23:12 +0000 Subject: [PATCH] BUGFIX: Fix TestRunner coverage pattern to work as documented (Fixes QA scripts too) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100116 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/TestRunner.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dev/TestRunner.php b/dev/TestRunner.php index 743ed647c..f04c2d76f 100644 --- a/dev/TestRunner.php +++ b/dev/TestRunner.php @@ -40,7 +40,7 @@ class TestRunner extends Controller { static $url_handlers = array( '' => 'browse', 'coverage/module/$ModuleName' => 'coverageModule', - 'coverage/$TestCase' => 'coverageOnly', + 'coverage/$TestCase!' => 'coverageOnly', 'coverage' => 'coverageAll', 'startsession' => 'startsession', 'endsession' => 'endsession', @@ -153,7 +153,7 @@ class TestRunner extends Controller { * Run a coverage test across all modules */ function coverageAll() { - ManifestBuilder::load_all_classes(); + ManifestBuilder::load_all_classes(); $this->all(true); } @@ -391,14 +391,14 @@ HTML; // This class is here to help with documentation. if(!hasPhpUnit()) { -/** - * PHPUnit is a testing framework that can be installed using PEAR. - * It's not bundled with Sapphire, you will need to install it yourself. - * - * @package sapphire - * @subpackage testing - */ -class PHPUnit_Framework_TestCase { - + /** + * PHPUnit is a testing framework that can be installed using PEAR. + * It's not bundled with Sapphire, you will need to install it yourself. + * + * @package sapphire + * @subpackage testing + */ + class PHPUnit_Framework_TestCase { + + } } -} \ No newline at end of file