File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Tests/Selenium2TestCase/Coverage Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 59
59
use PHPUnit \Extensions \Selenium2TestCase \URL ;
60
60
use PHPUnit \Extensions \Selenium2TestCase \WaitUntil ;
61
61
use PHPUnit \Extensions \Selenium2TestCase \Window ;
62
+ use PHPUnit \Extensions \SeleniumCommon \RemoteCoverage ;
62
63
use PHPUnit \Framework \TestCase ;
63
64
use PHPUnit \Framework \TestResult ;
64
65
use PHPUnit \Util \InvalidArgumentHelper ;
65
- use PHPUnit_Extensions_SeleniumCommon_RemoteCoverage ;
66
66
use RuntimeException ;
67
67
use Throwable ;
68
68
@@ -360,7 +360,7 @@ public function run(TestResult $result = NULL): TestResult
360
360
parent ::run ($ result );
361
361
362
362
if ($ this ->collectCodeCoverageInformation ) {
363
- $ coverage = new PHPUnit_Extensions_SeleniumCommon_RemoteCoverage (
363
+ $ coverage = new RemoteCoverage (
364
364
$ this ->coverageScriptUrl ,
365
365
$ this ->testId
366
366
);
Original file line number Diff line number Diff line change 1
1
<?php
2
- class PHPUnit_Extensions_SeleniumCommon_RemoteCoverage
2
+
3
+ namespace PHPUnit \Extensions \SeleniumCommon ;
4
+
5
+ use Exception ;
6
+
7
+ class RemoteCoverage
3
8
{
4
9
public function __construct ($ coverageScriptUrl , $ testId )
5
10
{
Original file line number Diff line number Diff line change 1
1
<?php
2
+
3
+ use PHPUnit \Extensions \SeleniumCommon \RemoteCoverage ;
2
4
use PHPUnit \Framework \TestCase ;
3
5
4
6
class Tests_Selenium2TestCase_Coverage_RemoteCoverageTest extends TestCase
5
7
{
6
8
public function testObtainsCodeCoverageInformationFromAPossiblyRemoteHttpServer ()
7
9
{
8
10
$ coverageScriptUrl = PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL . '/coverage/dummy.txt ' ;
9
- $ coverage = new PHPUnit_Extensions_SeleniumCommon_RemoteCoverage (
11
+ $ coverage = new RemoteCoverage (
10
12
$ coverageScriptUrl ,
11
13
'dummyTestId '
12
14
);
You can’t perform that action at this time.
0 commit comments