mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +00:00
Don't collect code coverage on every request.
This commit is contained in:
parent
61d6a720d6
commit
ad237ec681
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue