Skip to content

Commit f1bb9db

Browse files
committed
Fixed remote code coverage collection error, introduced in the #126 (not released)
1 parent 40f48f6 commit f1bb9db

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

library/aik099/PHPUnit/BrowserTestCase.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected function tearDownTest()
286286
{
287287
$result = $this->getTestResultObject();
288288

289-
if ( $result->getCollectCodeCoverageInformation() ) {
289+
if ( $this->getCollectCodeCoverageInformation() ) {
290290
$result->getCodeCoverage()->append($this->getRemoteCodeCoverageInformation(), $this);
291291
}
292292

@@ -359,11 +359,7 @@ public function onTestSuiteEnded()
359359
*/
360360
protected function getRemoteCodeCoverageInformation()
361361
{
362-
if ( $this->_remoteCoverageScriptUrl ) {
363-
return $this->_remoteCoverageHelper->get($this->_remoteCoverageScriptUrl, $this->_testId);
364-
}
365-
366-
return $this->_remoteCoverageHelper->getEmpty();
362+
return $this->_remoteCoverageHelper->get($this->_remoteCoverageScriptUrl, $this->_testId);
367363
}
368364

369365
/**

0 commit comments

Comments
 (0)