How to write your first PHPUnit powered Selenium test
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitignore
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

Introduction to PHPUnit Selenium Testing

Basically I just wanted to show you very very quickly how to get your first PHPUnit and Selenium test up and running.

1. Installing Requirements

Composer and Libraries

curl -s https://getcomposer.org/installer | php
php composer.phar install

Selenium Server

You will want to fetch the latest Selenium Server JAR file from here

wget http://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar
java -jar selenium-server-standalone-2.32.0.jar

2. Running Your Tests

php bin/phpunit

That's it! For more information, look at tests/ExampleTest.php

Curious about what all you can do? Check the Selenium2TestCase