File tree Expand file tree Collapse file tree 6 files changed +159
-66
lines changed
Expand file tree Collapse file tree 6 files changed +159
-66
lines changed Original file line number Diff line number Diff line change 2727 "ext-curl" : " *"
2828 },
2929 "require-dev" : {
30+ "php" : " >=7.1" ,
3031 "satooshi/php-coveralls" : " ^1.0||^2.0" ,
31- "phpunit/phpunit" : " ^ 4.8"
32+ "phpunit/phpunit" : " >= 4.8"
3233 },
3334 "autoload" : {
3435 "psr-0" : {
3536 "WebDriver" : " lib/"
3637 }
3738 },
39+ "autoload-dev" : {
40+ "psr-0" : {
41+ "Test" : " test/"
42+ }
43+ },
3844 "extra" : {
3945 "branch-alias" : {
4046 "dev-master" : " 2.0.x-dev"
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2-
32<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
4- <phpunit
3+ <phpunit xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance "
54 backupGlobals = " false"
65 backupStaticAttributes = " false"
76 colors = " true"
109 convertWarningsToExceptions = " true"
1110 processIsolation = " false"
1211 stopOnFailure = " false"
13- syntaxCheck = " false"
14- bootstrap = " lib/WebDriver/ClassLoader.php" >
15-
16- <testsuites >
17- <testsuite name =" Project Test Suite" >
18- <directory >test/Test</directory >
19- </testsuite >
20- </testsuites >
21-
22- <filter >
23- <whitelist >
24- <directory >lib</directory >
25- <exclude >
26- <file >__init__.php</file >
27- </exclude >
28- </whitelist >
29- </filter >
30-
12+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
13+ <coverage >
14+ <include >
15+ <directory suffix =" .php" >lib</directory >
16+ </include >
17+ <exclude >
18+ <file >__init__.php</file >
19+ </exclude >
20+ </coverage >
21+ <testsuites >
22+ <testsuite name =" Project Test Suite" >
23+ <directory suffix =" Test.php" >test/Test</directory >
24+ </testsuite >
25+ </testsuites >
3126</phpunit >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * Copyright 2021-2021 Anthon Pang. All Rights Reserved.
5+ *
6+ * Licensed under the Apache License, Version 2.0 (the "License");
7+ * you may not use this file except in compliance with the License.
8+ * You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing, software
13+ * distributed under the License is distributed on an "AS IS" BASIS,
14+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ * See the License for the specific language governing permissions and
16+ * limitations under the License.
17+ *
18+ * @package WebDriver
19+ *
20+ * @author Anthon Pang <apang@softwaredevelopment.ca>
21+ */
22+
23+ namespace Test \WebDriver ;
24+
25+ use Test \WebDriver \WebDriverTestBase ;
26+
27+ /**
28+ * ChromeDriver
29+ *
30+ * @package WebDriver
31+ *
32+ * @group Functional
33+ */
34+ class ChromeDriverTest extends WebDriverTestBase
35+ {
36+ protected $ testWebDriverRootUrl = 'http://localhost:9515 ' ;
37+ protected $ testWebDriverName = 'chromedriver ' ;
38+ }
Original file line number Diff line number Diff line change 11<?php
2+
23/**
34 * Copyright 2011-2017 Anthon Pang. All Rights Reserved.
45 *
2122
2223namespace Test \WebDriver ;
2324
25+ use PHPUnit \Framework \TestCase ;
2426use WebDriver \Exception ;
2527
2628/**
3032 *
3133 * @group Unit
3234 */
33- class ExceptionTest extends \PHPUnit_Framework_TestCase
35+ class ExceptionTest extends TestCase
3436{
3537 /**
3638 * test factory()
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * Copyright 2021-2021 Anthon Pang. All Rights Reserved.
5+ *
6+ * Licensed under the Apache License, Version 2.0 (the "License");
7+ * you may not use this file except in compliance with the License.
8+ * You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing, software
13+ * distributed under the License is distributed on an "AS IS" BASIS,
14+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ * See the License for the specific language governing permissions and
16+ * limitations under the License.
17+ *
18+ * @package WebDriver
19+ *
20+ * @author Anthon Pang <apang@softwaredevelopment.ca>
21+ */
22+
23+ namespace Test \WebDriver ;
24+
25+ use Test \WebDriver \WebDriverTestBase ;
26+
27+ /**
28+ * Selenium WebDriver
29+ *
30+ * @package WebDriver
31+ *
32+ * @group Functional
33+ */
34+ class SeleniumWebDriverTest extends WebDriverTestBase
35+ {
36+ protected $ testWebDriverRootUrl = 'http://localhost:4444/wd/hub ' ;
37+ protected $ testWebDriverName = 'selenium ' ;
38+ }
You can’t perform that action at this time.
0 commit comments