mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c4760f41a4
commit
1caedebafe
@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user