diff --git a/lib/Cake/TestSuite/CakeTestRunner.php b/lib/Cake/TestSuite/CakeTestRunner.php index 1aec77d7e..12d46ec60 100644 --- a/lib/Cake/TestSuite/CakeTestRunner.php +++ b/lib/Cake/TestSuite/CakeTestRunner.php @@ -65,7 +65,7 @@ class CakeTestRunner extends PHPUnit_TextUI_TestRunner { */ protected function createTestResult() { $result = new PHPUnit_Framework_TestResult; - if (isset($this->_params['codeCoverage'])) { + if (!empty($this->_params['codeCoverage'])) { $result->collectCodeCoverageInformation(true); } return $result;