A Symfony project combining PHPUnit and Selenium, with a little help of phantomjs ;)
- clone the repository
git clone git@github.com:zelazowy/php-selenium-unit.git
- install php dependencies
composer install
- install npm packages (phantomjs in fact)
npm install
- start phantomjs server
node_modules/.bin/phantomjs --webdriver=8001
- if you want to use https use
node_modules/.bin/phantomjs --ignore-ssl-errors=yes
- run tests
vendor/phpunit/phpunit/phpunit tests/Selenium