We love to have your help to make php-webdriver better!
Feel free to open an issue if you run into any problem, or send a pull request (see bellow) with your contribution.
Note before any pull request can be accepted, a Contributors Licensing Agreement must be signed.
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#. FYI, here is the overview of the official Java API
There are two test-suites: one with unit tests only, second with functional tests, which require running selenium server.
To execute all tests simply run:
./vendor/bin/phpunit
If you want to execute just the unit tests, run:
./vendor/bin/phpunit --testsuite unit
For the functional tests you must first download and start the selenium server, then run the functional
test suite:
java -jar selenium-server-standalone-2.48.2.jar -log selenium.log &
./vendor/bin/phpunit --testsuite functional
Your code-style should comply with PSR-2. To make sure your code matches this requirement run:
./vendor/bin/php-cs-fixer fix --diff --dry-run
./vendor/bin/phpcs --standard=PSR2 ./lib/ ./tests/