Don't collect code coverage on every request.

This commit is contained in:
mark_story 2011-11-05 17:29:55 -04:00
parent 61d6a720d6
commit ad237ec681

View file

@ -65,7 +65,7 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner {
*/ */
protected function createTestResult() { protected function createTestResult() {
$result = new PHPUnit_Framework_TestResult; $result = new PHPUnit_Framework_TestResult;
if (isset($this->_params['codeCoverage'])) { if (!empty($this->_params['codeCoverage'])) {
$result->collectCodeCoverageInformation(true); $result->collectCodeCoverageInformation(true);
} }
return $result; return $result;