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
This commit is contained in:
Luke Hudson 2010-03-01 03:23:12 +00:00 committed by Sam Minnee
parent c4760f41a4
commit 1caedebafe

View File

@ -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 {
}
}
}