php5friends/phpunit-selenium

Selenium Server integration for PHPUnit

2.0.4 2018-03-18 13:46 UTC

This package is auto-updated.

Last update: 2024-11-07 22:26:29 UTC


README

This package contains a Selenium2TestCase class that can be used to run end-to-end tests against Selenium 2.

Installing

Use Composer and run composer require --dev phpunit/phpunit-selenium.

Requirements

  • PHPUnit 4.8, 5.x

The current mainline of this package is 3.x, which supports PHPUnit 5.x.

The second supported line is 2.x, which supports PHPUnit >= 4.8 instead.

Both these supported lines only work with the Selenium 2 API, using the Selenium2TestCase class.

The old line 1.x is not maintained anymore, but will continue to be available for usage of SeleniumTestCase.

Please direct pull requests to giorgiosironi/phpunit-selenium for automated testing upon merging. Pull requests should be feature branches containing all the commits you want to propose.

Running the test suite

Via Vagrant

Just run the following Vagrant commands (a minimal version of v1.7 is required) and everything will be set up for you. The first start will take some time which depends on the speed of your connection (and less - speed of your computer):

vagrant up
vagrant provision
vagrant ssh

cd /vagrant
vendor/bin/phpunit Tests

and you must see the phpunit testing phpunit-selenium project.