-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update ci.yml Execute CI on 1.3.x * phpcs * - updated chrome.sh/firefox.sh to download driver using bdi - fixing firefox options - update shell scripts * phpcs * moved 8.3 into stable and 8.4 into experimental * removed 8.0 EOL * added phpstan-baseline.neon * fix tests * update ci.yaml * trigger * phpcs * phpstan * phpcs * phpcs
- Loading branch information
1 parent
1e7d39c
commit 952f5c7
Showing
15 changed files
with
185 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Method OAndreyev\\\\Mink\\\\Driver\\\\WebDriver\\:\\:setValue\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/WebDriver.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$timeout_in_second of method Facebook\\\\WebDriver\\\\Remote\\\\RemoteWebDriver\\:\\:wait\\(\\) expects int, float given\\.$#" | ||
count: 1 | ||
path: src/WebDriver.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: 6 | ||
paths: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor-bin/phpunit/vendor/phpunit/phpunit/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
colors="true" | ||
bootstrap="vendor/autoload.php" | ||
> | ||
<coverage> | ||
<include> | ||
<directory>./src</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Driver test suite"> | ||
<directory>tests</directory> | ||
<directory>vendor/mink/driver-testsuite/tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<listeners> | ||
<listener class="OAndreyev\Mink\Tests\Driver\ScreenshotListener"/> | ||
</listeners> | ||
|
||
<php> | ||
<var name="driver_config_factory" value="OAndreyev\Mink\Tests\Driver\WebDriverConfig::getInstance" /> | ||
|
||
<!-- Docker for Mac, see https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos#i-want-to-connect-from-a-container-to-a-service-on-the-host --> | ||
<!-- <server name="WEB_FIXTURES_HOST" value="http://host.docker.internal:8002"/>--> | ||
<!-- See default value in \Behat\Mink\Tests\Driver\AbstractConfig::getWebFixturesUrl --> | ||
<!-- <server name="WEB_FIXTURES_HOST" value="http://localhost:8002"/>--> | ||
|
||
<!-- <env name="BROWSER_NAME" value="chrome"/>--> | ||
<!-- https://peter.sh/experiments/chromium-command-line-switches/ --> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"args":["headless"]}'/>--> | ||
|
||
<!-- <env name="BROWSER_NAME" value="firefox"/>--> | ||
<!-- https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#binary--> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "args": ["-headless"], "binary": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin"}'/>--> | ||
<!-- <env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "binary": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin"}'/>--> | ||
<var name="driver_config_factory" value="OAndreyev\Mink\Tests\Driver\WebDriverConfig::getInstance"/> | ||
<!--Docker for Mac, see https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos#i-want-to-connect-from-a-container-to-a-service-on-the-host --> | ||
<!--<server name="WEB_FIXTURES_HOST" value="http://host.docker.internal:8002"/>--> | ||
<!--See default value in \Behat\Mink\Tests\Driver\AbstractConfig::getWebFixturesUrl --> | ||
<!--<server name="WEB_FIXTURES_HOST" value="http://localhost:8002"/>--> | ||
|
||
<!-- where driver will connect to --> | ||
<server name="DRIVER_URL" value="http://localhost:4444" /> | ||
<!--<server name="DRIVER_URL" value="http://localhost:4444"/>--> | ||
<!-- Docker for Mac, see https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos#i-want-to-connect-from-a-container-to-a-service-on-the-host --> | ||
<!-- <server name="DRIVER_URL" value="http://host.docker.internal:4444/wd/hub" />--> | ||
<!--<server name="DRIVER_URL" value="http://host.docker.internal:4444/wd/hub" />--> | ||
|
||
<!-- CHROME --> | ||
<!--<env name="BROWSER_NAME" value="chrome"/>--> | ||
<!--https://peter.sh/experiments/chromium-command-line-switches/ --> | ||
<!--<env name="DRIVER_OPTIONS" value='{"args":["headless"]}'/>--> | ||
|
||
<!-- FIREFOX --> | ||
<!--<env name="BROWSER_NAME" value="firefox"/>--> | ||
<!--https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#binary--> | ||
<!--<env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "args": ["-headless"]}'/>--> | ||
<!--<env name="DRIVER_OPTIONS" value='{"log": {"level":"trace"}, "binary": "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin"}'/>--> | ||
</php> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>./src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
Oops, something went wrong.