Skip to content

Commit

Permalink
Updating testsuite shell to use new CodeCoverage methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 10, 2010
1 parent 02dbbcd commit 980a85c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cake/console/libs/testsuite.php
Expand Up @@ -307,7 +307,8 @@ function __run() {

if ($this->doCoverage) {
require_once CAKE . 'tests' . DS . 'lib' . DS . 'code_coverage_manager.php';
CodeCoverageManager::start($ucFirstGroup, $Reporter);
CodeCoverageManager::init($ucFirstGroup, $Reporter);
CodeCoverageManager::start();
}
$result = $this->Manager->runGroupTest($ucFirstGroup, $Reporter);
if ($this->doCoverage) {
Expand All @@ -330,7 +331,8 @@ function __run() {

if ($this->doCoverage) {
require_once CAKE . 'tests' . DS . 'lib' . DS . 'code_coverage_manager.php';
CodeCoverageManager::start($case, $Reporter);
CodeCoverageManager::init($case, $Reporter);
CodeCoverageManager::start();
}

$result = $this->Manager->runTestCase($case, $Reporter);
Expand Down

0 comments on commit 980a85c

Please sign in to comment.