mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +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() {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue