Skip to content

Commit dc02e04

Browse files
authored
Merge pull request #1 from php-webdriver/main
update
2 parents 2dbfa70 + d01e823 commit dc02e04

File tree

222 files changed

+4018
-3251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+4018
-3251
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
/.travis.yml export-ignore
77
/example.php export-ignore
88
/phpunit.xml.dist export-ignore
9+
/.github export-ignore
10+
/.php_cs.dist export-ignore
11+
/phpstan.neon export-ignore
12+
/.coveralls.yml export-ignore

CONTRIBUTING.md .github/CONTRIBUTING.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
We love to have your help to make php-webdriver better!
44

5-
Feel free to open an [issue](https://github.com/facebook/php-webdriver/issues) if you run into any problem, or
5+
Feel free to open an [issue](https://github.com/php-webdriver/php-webdriver/issues) if you run into any problem, or
66
send a pull request (see bellow) with your contribution.
77

88
## Code of Conduct
@@ -14,10 +14,8 @@ The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md)
1414
2. Implement your code changes into separate branch
1515
3. Make sure all PHPUnit tests passes and code-style matches PSR-2 (see below). We also have Travis CI build which will automatically run tests on your pull request.
1616
4. When implementing notable change, fix or a new feature, add record to Unreleased section of [CHANGELOG.md](CHANGELOG.md)
17-
5. Submit your [pull request](https://github.com/facebook/php-webdriver/pulls) against community branch
17+
5. Submit your [pull request](https://github.com/php-webdriver/php-webdriver/pulls) against `main` branch
1818

19-
Note before any pull request can be accepted, a [Contributors Licensing Agreement](https://developers.facebook.com/opensource/cla) must be signed.
20-
2119
When you are going to contribute, please keep in mind that this webdriver client aims to be as close as possible to other languages Java/Ruby/Python/C#.
2220
FYI, here is the overview of [the official Java API](http://seleniumhq.github.io/selenium/docs/api/java/)
2321

@@ -37,17 +35,23 @@ For the functional tests you must first [download](http://selenium-release.stora
3735
the selenium standalone server, start the local PHP server which will serve the test pages and then run the `functional`
3836
test suite:
3937

40-
java -jar selenium-server-standalone-2.53.1.jar -log selenium.log &
38+
java -jar selenium-server-standalone-3.9.1.jar -log selenium.log &
4139
php -S localhost:8000 -t tests/functional/web/ &
4240
./vendor/bin/phpunit --testsuite functional
43-
41+
4442
The functional tests will be started in HtmlUnit headless browser by default. If you want to run them in eg. Firefox,
4543
simply set the `BROWSER_NAME` environment variable:
4644

4745
...
4846
export BROWSER_NAME="firefox"
4947
./vendor/bin/phpunit --testsuite functional
5048

49+
To test with Geckodriver, [download](https://github.com/mozilla/geckodriver/releases) and start the server, then run:
50+
51+
export GECKODRIVER=1
52+
export BROWSER_NAME=firefox
53+
./vendor/bin/phpunit --testsuite functional
54+
5155
### Check coding style
5256

5357
Your code-style should comply with [PSR-2](http://www.php-fig.org/psr/psr-2/). To make sure your code matches this requirement run:
File renamed without changes.

.github/workflows/php.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PHP
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 3 * * *'
8+
9+
jobs:
10+
analyze:
11+
name: "Code style and static analysis"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v1
18+
with:
19+
php-version: '7.4'
20+
extensions: mbstring, intl, zip
21+
22+
- name: Install dependencies
23+
run: |
24+
composer update --no-interaction
25+
composer require --dev phpstan/phpstan # Not part of require-dev, because it won't install on PHP 5.6
26+
composer require --dev ergebnis/composer-normalize
27+
28+
- name: Check composer.json
29+
run: |
30+
composer validate --strict
31+
composer normalize --dry-run
32+
33+
- name: Run checks
34+
run: |
35+
composer analyze
36+
composer codestyle:check

.php_cs.dist

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ return PhpCsFixer\Config::create()
1313
'concat_space' => ['spacing' => 'one'],
1414
'function_typehint_space' => true,
1515
'general_phpdoc_annotation_remove' => ['author'],
16+
'implode_call' => true,
17+
'is_null' => true,
1618
'linebreak_after_opening_tag' => true,
1719
'lowercase_cast' => true,
1820
'mb_str_functions' => true,
@@ -51,9 +53,15 @@ return PhpCsFixer\Config::create()
5153
'ordered_imports' => true,
5254
'php_unit_construct' => true,
5355
'php_unit_dedicate_assert' => true,
54-
'php_unit_expectation' => true,
56+
'php_unit_expectation' => ['target' => '5.6'],
57+
'php_unit_method_casing' => ['case' => 'camel_case'],
5558
'php_unit_mock' => true,
59+
'php_unit_mock_short_will_return' => true,
60+
'php_unit_namespaced' => ['target' => '5.7'],
5661
'php_unit_no_expectation_annotation' => true,
62+
'php_unit_ordered_covers' => true,
63+
'php_unit_set_up_tear_down_visibility' => true,
64+
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
5765
'phpdoc_add_missing_param_annotation' => true,
5866
'phpdoc_indent' => true,
5967
'phpdoc_no_access' => true,

.travis.yml

+104-45
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,172 @@
11
language: php
2-
sudo: false
3-
dist: trusty
2+
dist: xenial
43

54
php:
6-
- 5.6
7-
- 7.0
8-
- 7.1
9-
- 7.2
5+
- '5.6'
6+
- '7.0'
7+
- '7.1'
8+
- '7.2'
9+
- '7.3'
10+
- '7.4'
1011

1112
env:
1213
global:
1314
- DISPLAY=:99.0
1415
- BROWSER_NAME="htmlunit"
15-
- CHROMEDRIVER_VERSION="2.38"
16+
- SELENIUM_SERVER="https://selenium-release.storage.googleapis.com/3.14/selenium-server-standalone-3.14.0.jar" # Latest version including HtmlUnit
17+
18+
services:
19+
- xvfb
1620

1721
matrix:
1822
include:
19-
# Add build to run tests against Firefox inside Travis environment
20-
- php: 7.2
21-
env: BROWSER_NAME="firefox"
23+
# Build with lowest possible dependencies on lowest possible PHP
24+
- name: 'Lowest dependencies build'
25+
php: '5.6'
26+
env: DEPENDENCIES="--prefer-lowest"
27+
28+
# Firefox inside Travis environment
29+
- name: 'Firefox 45 on Travis (OSS protocol); via legacy Selenium server'
30+
php: '7.3'
31+
env:
32+
- BROWSER_NAME="firefox"
33+
- SELENIUM_SERVER="legacy"
2234
addons:
2335
firefox: "45.8.0esr"
2436

25-
# Add build to run tests against Chrome inside Travis environment
26-
- php: 7.2
27-
env: BROWSER_NAME="chrome" CHROME_HEADLESS="1"
37+
# Firefox with Geckodriver (W3C mode) inside Travis environment
38+
- name: 'Firefox latest on Travis (W3C protocol); no Selenium server'
39+
php: '7.3'
40+
env:
41+
- BROWSER_NAME="firefox"
42+
- GECKODRIVER="1"
43+
addons:
44+
firefox: latest
45+
46+
# Stable Chrome + Chromedriver (W3C mode) inside Travis environment via Selenium server proxy
47+
- name: 'Chrome stable on Travis (W3C protocol); via Selenium server'
48+
php: '7.3'
49+
env:
50+
- BROWSER_NAME="chrome"
2851
addons:
2952
chrome: stable
3053

31-
# Build with lowest possible dependencies
32-
- php: 7.2
33-
env: DEPENDENCIES="--prefer-lowest"
54+
# Stable Chrome + Chromedriver (W3C mode) inside Travis environment directly via Chromedriver
55+
- name: 'Chrome stable on Travis (W3C protocol); no Selenium server'
56+
php: '7.3'
57+
env:
58+
- BROWSER_NAME="chrome"
59+
- CHROMEDRIVER="1"
60+
addons:
61+
chrome: stable
3462

35-
# Chrome on Travis build with lowest possible dependencies
36-
- php: 7.2
37-
env: BROWSER_NAME="chrome" CHROME_HEADLESS="1" DEPENDENCIES="--prefer-lowest"
63+
# Stable Chrome + Chromedriver (JsonWire OSS mode) inside Travis environment directly via Chromedriver
64+
- name: 'Chrome stable on Travis (OSS protocol); no Selenium server'
65+
php: '7.3'
66+
env:
67+
- BROWSER_NAME="chrome"
68+
- CHROMEDRIVER="1"
69+
- DISABLE_W3C_PROTOCOL="1"
3870
addons:
3971
chrome: stable
4072

4173
# Saucelabs builds
42-
- php: 7.2
43-
env: SAUCELABS=1 BROWSER_NAME="firefox" VERSION="47.0" PLATFORM="Windows 10"
74+
- name: 'Sauce Labs, Firefox 47, OSS protocol'
75+
php: '7.3'
76+
env: SAUCELABS=1 BROWSER_NAME="firefox" VERSION="47.0" PLATFORM="Windows 10" DISABLE_W3C_PROTOCOL="1"
4477
before_script:
4578
- php -S 127.0.0.1:8000 -t tests/functional/web/ &>>./logs/php-server.log &
4679
- until $(echo | nc localhost 8000); do sleep 1; echo waiting for PHP server on port 8000...; done; echo "PHP server started"
4780
addons:
4881
sauce_connect: true
4982
jwt:
50-
secure: HPq5xFhosa1eSGnaRdJzeyEuaE0mhRlG1gf3G7+dKS0VniF30husSyrxZhbGCCKBGxmIySoAQzd43BCwL69EkUEVKDN87Cpid1Ce9KrSfU3cnN8XIb+4QINyy7x1a47RUAfaaOEx53TrW0ShalvjD+ZwDE8LrgagSox6KQ+nQLE=
51-
- php: 7.2
83+
secure: 5s8iQfH1dHgEm0DeP9VZ/MCzCeiE/HnMWqPFzRmg6VD2qJ53oYdseo8j+QCbE25MIwoSnIbKzlnbCN6fVzZc/0S7Mo45xJiq8xVLPSdMjDoOeqYE4of+t5Srq4iSzGLPCLiMTtB4xDEl6blUVGhYxN5rA/tVN+cVtLNQvo3ovRon3Mw3MqR4pgCE6PofcLXtyJc3KuOBlUJLWdPGRdlZrpKWE5ogyj4a1h4bVwidckZqkOF+gm58Gf0zVfFazDQFIw2Xuq7SZmiNgdOD5yUEePkrMhy2tbOlPNAIgHCpzHldv5Y+GYyxIYHZ0mGlGxHrfjrcAoSA6r2iXB9q2ijLVwqOARpcvGcBzZBil9aMAHRIXHAOV9Ihv4velrzmiLKADtD60Bfj2zzntGYZA3EGucitMMkkP7vfAa769i5QWK1Lniq3+VUuGNVjRzl4GuQPpc0wMWeJvQGc5Uf9Kk/sOCkPp0SPWcZ6nNAUebRy3V5OoADA9IntyXxfTlZdOHSbJTsG+eOGve0uLGRAOS+oeCstO7Gk4e/Ylozju+ixkINEY7HHDGt6AyHGtjPdy08Y0XrIqs0JMxsHKrtTVNxDjIFKbMees+vtxU3DEr/tNo1sTo34ieGKZP2Cp5mG/IrcjD1saebUaCngQO3QfeuKcU8pBTR7l7PtFNHm3HrmdkY=
84+
85+
- name: 'Sauce Labs, Chrome 74, OSS protocol'
86+
php: '7.3'
87+
env: SAUCELABS=1 BROWSER_NAME="chrome" VERSION="74.0" PLATFORM="Windows 10" DISABLE_W3C_PROTOCOL="1" # 74 is the last version which don't use W3C WebDriver by default
88+
before_script:
89+
- php -S 127.0.0.1:8000 -t tests/functional/web/ &>>./logs/php-server.log &
90+
- until $(echo | nc localhost 8000); do sleep 1; echo waiting for PHP server on port 8000...; done; echo "PHP server started"
91+
addons:
92+
sauce_connect: true
93+
jwt:
94+
secure: 5s8iQfH1dHgEm0DeP9VZ/MCzCeiE/HnMWqPFzRmg6VD2qJ53oYdseo8j+QCbE25MIwoSnIbKzlnbCN6fVzZc/0S7Mo45xJiq8xVLPSdMjDoOeqYE4of+t5Srq4iSzGLPCLiMTtB4xDEl6blUVGhYxN5rA/tVN+cVtLNQvo3ovRon3Mw3MqR4pgCE6PofcLXtyJc3KuOBlUJLWdPGRdlZrpKWE5ogyj4a1h4bVwidckZqkOF+gm58Gf0zVfFazDQFIw2Xuq7SZmiNgdOD5yUEePkrMhy2tbOlPNAIgHCpzHldv5Y+GYyxIYHZ0mGlGxHrfjrcAoSA6r2iXB9q2ijLVwqOARpcvGcBzZBil9aMAHRIXHAOV9Ihv4velrzmiLKADtD60Bfj2zzntGYZA3EGucitMMkkP7vfAa769i5QWK1Lniq3+VUuGNVjRzl4GuQPpc0wMWeJvQGc5Uf9Kk/sOCkPp0SPWcZ6nNAUebRy3V5OoADA9IntyXxfTlZdOHSbJTsG+eOGve0uLGRAOS+oeCstO7Gk4e/Ylozju+ixkINEY7HHDGt6AyHGtjPdy08Y0XrIqs0JMxsHKrtTVNxDjIFKbMees+vtxU3DEr/tNo1sTo34ieGKZP2Cp5mG/IrcjD1saebUaCngQO3QfeuKcU8pBTR7l7PtFNHm3HrmdkY=
95+
96+
- name: 'Sauce Labs, Chrome latest, W3C protocol'
97+
php: '7.3'
5298
env: SAUCELABS=1 BROWSER_NAME="chrome" VERSION="latest" PLATFORM="Windows 10"
5399
before_script:
54100
- php -S 127.0.0.1:8000 -t tests/functional/web/ &>>./logs/php-server.log &
55101
- until $(echo | nc localhost 8000); do sleep 1; echo waiting for PHP server on port 8000...; done; echo "PHP server started"
56102
addons:
57103
sauce_connect: true
58104
jwt:
59-
secure: HPq5xFhosa1eSGnaRdJzeyEuaE0mhRlG1gf3G7+dKS0VniF30husSyrxZhbGCCKBGxmIySoAQzd43BCwL69EkUEVKDN87Cpid1Ce9KrSfU3cnN8XIb+4QINyy7x1a47RUAfaaOEx53TrW0ShalvjD+ZwDE8LrgagSox6KQ+nQLE=
60-
- php: 7.2
61-
env: SAUCELABS=1 BROWSER_NAME="MicrosoftEdge" VERSION="15.15063" PLATFORM="Windows 10"
105+
secure: 5s8iQfH1dHgEm0DeP9VZ/MCzCeiE/HnMWqPFzRmg6VD2qJ53oYdseo8j+QCbE25MIwoSnIbKzlnbCN6fVzZc/0S7Mo45xJiq8xVLPSdMjDoOeqYE4of+t5Srq4iSzGLPCLiMTtB4xDEl6blUVGhYxN5rA/tVN+cVtLNQvo3ovRon3Mw3MqR4pgCE6PofcLXtyJc3KuOBlUJLWdPGRdlZrpKWE5ogyj4a1h4bVwidckZqkOF+gm58Gf0zVfFazDQFIw2Xuq7SZmiNgdOD5yUEePkrMhy2tbOlPNAIgHCpzHldv5Y+GYyxIYHZ0mGlGxHrfjrcAoSA6r2iXB9q2ijLVwqOARpcvGcBzZBil9aMAHRIXHAOV9Ihv4velrzmiLKADtD60Bfj2zzntGYZA3EGucitMMkkP7vfAa769i5QWK1Lniq3+VUuGNVjRzl4GuQPpc0wMWeJvQGc5Uf9Kk/sOCkPp0SPWcZ6nNAUebRy3V5OoADA9IntyXxfTlZdOHSbJTsG+eOGve0uLGRAOS+oeCstO7Gk4e/Ylozju+ixkINEY7HHDGt6AyHGtjPdy08Y0XrIqs0JMxsHKrtTVNxDjIFKbMees+vtxU3DEr/tNo1sTo34ieGKZP2Cp5mG/IrcjD1saebUaCngQO3QfeuKcU8pBTR7l7PtFNHm3HrmdkY=
106+
107+
- name: 'Sauce Labs, Edge latest, W3C protocol'
108+
php: '7.3'
109+
env: SAUCELABS=1 BROWSER_NAME="MicrosoftEdge" VERSION="latest" PLATFORM="Windows 10"
62110
before_script:
63111
- php -S 127.0.0.1:8000 -t tests/functional/web/ &>>./logs/php-server.log &
64112
- until $(echo | nc localhost 8000); do sleep 1; echo waiting for PHP server on port 8000...; done; echo "PHP server started"
65113
addons:
66114
sauce_connect: true
67115
jwt:
68-
secure: HPq5xFhosa1eSGnaRdJzeyEuaE0mhRlG1gf3G7+dKS0VniF30husSyrxZhbGCCKBGxmIySoAQzd43BCwL69EkUEVKDN87Cpid1Ce9KrSfU3cnN8XIb+4QINyy7x1a47RUAfaaOEx53TrW0ShalvjD+ZwDE8LrgagSox6KQ+nQLE=
69-
70-
# Codestyle check build
71-
- php: 7.2
72-
env: CHECK_CODESTYLE=1
73-
before_install:
74-
- phpenv config-rm xdebug.ini
75-
before_script: ~
76-
script:
77-
- composer require phpstan/phpstan-shim # Not part of require-dev, because it won't install on PHP 5.6
78-
- composer analyze
79-
- composer codestyle:check
80-
after_script: ~
81-
after_success: ~
116+
secure: 5s8iQfH1dHgEm0DeP9VZ/MCzCeiE/HnMWqPFzRmg6VD2qJ53oYdseo8j+QCbE25MIwoSnIbKzlnbCN6fVzZc/0S7Mo45xJiq8xVLPSdMjDoOeqYE4of+t5Srq4iSzGLPCLiMTtB4xDEl6blUVGhYxN5rA/tVN+cVtLNQvo3ovRon3Mw3MqR4pgCE6PofcLXtyJc3KuOBlUJLWdPGRdlZrpKWE5ogyj4a1h4bVwidckZqkOF+gm58Gf0zVfFazDQFIw2Xuq7SZmiNgdOD5yUEePkrMhy2tbOlPNAIgHCpzHldv5Y+GYyxIYHZ0mGlGxHrfjrcAoSA6r2iXB9q2ijLVwqOARpcvGcBzZBil9aMAHRIXHAOV9Ihv4velrzmiLKADtD60Bfj2zzntGYZA3EGucitMMkkP7vfAa769i5QWK1Lniq3+VUuGNVjRzl4GuQPpc0wMWeJvQGc5Uf9Kk/sOCkPp0SPWcZ6nNAUebRy3V5OoADA9IntyXxfTlZdOHSbJTsG+eOGve0uLGRAOS+oeCstO7Gk4e/Ylozju+ixkINEY7HHDGt6AyHGtjPdy08Y0XrIqs0JMxsHKrtTVNxDjIFKbMees+vtxU3DEr/tNo1sTo34ieGKZP2Cp5mG/IrcjD1saebUaCngQO3QfeuKcU8pBTR7l7PtFNHm3HrmdkY=
82117

83118
cache:
84119
directories:
85120
- $HOME/.composer/cache
86-
- jar
87121

88122
install:
89123
- travis_retry composer self-update
90124
- travis_retry composer update --no-interaction $DEPENDENCIES
91125

92126
before_script:
93-
- if [ "$BROWSER_NAME" = "chrome" ]; then mkdir chromedriver; wget -q -t 3 https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip; unzip chromedriver_linux64 -d chromedriver; fi
127+
- if [ "$BROWSER_NAME" = "chrome" ]; then
128+
mkdir chromedriver;
129+
CHROME_VERSION=$(google-chrome --product-version);
130+
CHROME_VERSION=${CHROME_VERSION%.*};
131+
wget -q -t 3 https://chromedriver.storage.googleapis.com/$(curl -L https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION})/chromedriver_linux64.zip;
132+
unzip chromedriver_linux64.zip -d chromedriver;
133+
fi
94134
- if [ "$BROWSER_NAME" = "chrome" ]; then export CHROMEDRIVER_PATH=$PWD/chromedriver/chromedriver; fi
95-
- sh -e /etc/init.d/xvfb start
96-
- if [ ! -f jar/selenium-server-standalone-3.8.1.jar ]; then wget -q -t 3 -P jar https://selenium-release.storage.googleapis.com/3.8/selenium-server-standalone-3.8.1.jar; fi
97-
- java -Dwebdriver.firefox.marionette=false -Dwebdriver.chrome.driver="$CHROMEDRIVER_PATH" -jar jar/selenium-server-standalone-3.8.1.jar -enablePassThrough false -log ./logs/selenium.log &
135+
- if [ "$GECKODRIVER" = "1" ]; then mkdir -p geckodriver; wget -q -t 3 https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-linux64.tar.gz; tar xzf geckodriver-v0.27.0-linux64.tar.gz -C geckodriver; fi
136+
- if [ ! -f jar/selenium-server-standalone.jar ] && [ -n "$SELENIUM_SERVER" ]; then
137+
mkdir -p jar;
138+
if [ "$SELENIUM_SERVER" = "legacy" ]; then
139+
wget -q -t 3 -O jar/selenium-server-standalone.jar https://selenium-release.storage.googleapis.com/3.8/selenium-server-standalone-3.8.1.jar;
140+
else
141+
wget -q -t 3 -O jar/selenium-server-standalone.jar $SELENIUM_SERVER;
142+
fi
143+
fi
144+
- if [ "$GECKODRIVER" = "1" ]; then
145+
geckodriver/geckodriver &> ./logs/geckodriver.log &
146+
elif [ "$CHROMEDRIVER" = "1" ]; then
147+
chromedriver/chromedriver --port=4444 --url-base=/wd/hub &> ./logs/chromedriver.log &
148+
elif [ "$SELENIUM_SERVER" = "legacy" ]; then
149+
java -Dwebdriver.firefox.marionette=false -Dwebdriver.chrome.driver="$PWD/chromedriver/chromedriver" -jar jar/selenium-server-standalone.jar -enablePassThrough false -log ./logs/selenium.log &
150+
else
151+
java -Dwebdriver.chrome.driver="$PWD/chromedriver/chromedriver" -Dwebdriver.gecko.driver="$PWD/geckodriver/geckodriver" -jar jar/selenium-server-standalone.jar -log ./logs/selenium.log &
152+
fi
98153
- until $(echo | nc localhost 4444); do sleep 1; echo Waiting for Selenium server on port 4444...; done; echo "Selenium server started"
99154
- php -S 127.0.0.1:8000 -t tests/functional/web/ &>>./logs/php-server.log &
100155
- until $(echo | nc localhost 8000); do sleep 1; echo waiting for PHP server on port 8000...; done; echo "PHP server started"
101156

102157
script:
103158
- if [ -n "$SAUCELABS" ]; then EXCLUDE_GROUP+="exclude-saucelabs,"; fi
104159
- if [ "$BROWSER_NAME" = "MicrosoftEdge" ]; then EXCLUDE_GROUP+="exclude-edge,"; fi
160+
- if [ "$BROWSER_NAME" = "firefox" ]; then EXCLUDE_GROUP+="exclude-firefox,"; fi
161+
- if [ "$BROWSER_NAME" = "chrome" ]; then EXCLUDE_GROUP+="exclude-chrome,"; fi
105162
- if [ -n "$EXCLUDE_GROUP" ]; then EXTRA_PARAMS+=" --exclude-group $EXCLUDE_GROUP"; fi
106163
- ./vendor/bin/phpunit --coverage-clover ./logs/coverage-clover.xml $EXTRA_PARAMS
107164

108165
after_script:
109166
- if [ -f ./logs/selenium.log ]; then cat ./logs/selenium.log; fi
110167
- if [ -f ./logs/php-server.log ]; then cat ./logs/php-server.log; fi
168+
- if [ -f ./logs/geckodriver.log ]; then cat ./logs/geckodriver.log; fi
169+
- if [ -f ./logs/chromedriver.log ]; then cat ./logs/chromedriver.log; fi
111170

112171
after_success:
113172
- travis_retry php vendor/bin/php-coveralls -v

0 commit comments

Comments
 (0)