Skip to content

Commit

Permalink
Fixed remote code coverage collection error, introduced in the #126 (…
Browse files Browse the repository at this point in the history
…not released)
  • Loading branch information
aik099 committed Mar 15, 2024
1 parent 40f48f6 commit f1bb9db
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions library/aik099/PHPUnit/BrowserTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ protected function tearDownTest()
{
$result = $this->getTestResultObject();

if ( $result->getCollectCodeCoverageInformation() ) {
if ( $this->getCollectCodeCoverageInformation() ) {
$result->getCodeCoverage()->append($this->getRemoteCodeCoverageInformation(), $this);
}

Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit f1bb9db

Please sign in to comment.