Skip to content

Commit

Permalink
Don't collect code coverage on every request.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 5, 2011
1 parent 61d6a72 commit ad237ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/CakeTestRunner.php
Expand Up @@ -65,7 +65,7 @@ public function doRun(PHPUnit_Framework_Test $suite, array $arguments = array())
*/
protected function createTestResult() {
$result = new PHPUnit_Framework_TestResult;
if (isset($this->_params['codeCoverage'])) {
if (!empty($this->_params['codeCoverage'])) {
$result->collectCodeCoverageInformation(true);
}
return $result;
Expand Down

0 comments on commit ad237ec

Please sign in to comment.