From f1bb9dba1afba7364e474168d9e53705e48a7d6b Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 15 Mar 2024 10:26:12 +0200 Subject: [PATCH] Fixed remote code coverage collection error, introduced in the #126 (not released) --- library/aik099/PHPUnit/BrowserTestCase.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/aik099/PHPUnit/BrowserTestCase.php b/library/aik099/PHPUnit/BrowserTestCase.php index 2661f06..559c493 100644 --- a/library/aik099/PHPUnit/BrowserTestCase.php +++ b/library/aik099/PHPUnit/BrowserTestCase.php @@ -286,7 +286,7 @@ protected function tearDownTest() { $result = $this->getTestResultObject(); - if ( $result->getCollectCodeCoverageInformation() ) { + if ( $this->getCollectCodeCoverageInformation() ) { $result->getCodeCoverage()->append($this->getRemoteCodeCoverageInformation(), $this); } @@ -359,11 +359,7 @@ public function onTestSuiteEnded() */ protected function getRemoteCodeCoverageInformation() { - if ( $this->_remoteCoverageScriptUrl ) { - return $this->_remoteCoverageHelper->get($this->_remoteCoverageScriptUrl, $this->_testId); - } - - return $this->_remoteCoverageHelper->getEmpty(); + return $this->_remoteCoverageHelper->get($this->_remoteCoverageScriptUrl, $this->_testId); } /**