Skip to content

Commit 96cda9f

Browse files
Simplify
1 parent f99f476 commit 96cda9f

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

src/Framework/TestResult.php

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
* @since File available since Release 2.0.0
4444
*/
4545

46-
use SebastianBergmann\Environment\Runtime;
47-
4846
/**
4947
* A TestResult collects the results of executing a test case.
5048
*
@@ -190,20 +188,6 @@ class PHPUnit_Framework_TestResult implements Countable
190188
*/
191189
protected $timeoutForLargeTests = 60;
192190

193-
/**
194-
* @var boolean
195-
*/
196-
private $canCollectCodeCoverage = false;
197-
198-
/**
199-
* @since Method available since Release 4.0.9
200-
*/
201-
public function __construct()
202-
{
203-
$runtime = new Runtime;
204-
$this->canCollectCodeCoverage = $runtime->canCollectCodeCoverage();
205-
}
206-
207191
/**
208192
* Registers a TestListener.
209193
*
@@ -654,8 +638,7 @@ public function run(PHPUnit_Framework_Test $test)
654638
}
655639
}
656640

657-
$collectCodeCoverage = $this->canCollectCodeCoverage &&
658-
$this->codeCoverage !== null &&
641+
$collectCodeCoverage = $this->codeCoverage !== null &&
659642
!$test instanceof PHPUnit_Extensions_SeleniumTestCase &&
660643
!$test instanceof PHPUnit_Framework_Warning;
661644

0 commit comments

Comments
 (0)