#PHPUnit Selenium 2
##Install
First download phpunit-selenium-2.zip
Use Composer commands:
Using Composer
Install Composer to Windows
php composer.phar updateOr use
composer install##Testing
Downloading Selenium Standalone Server in: http://docs.seleniumhq.org/download/
Running server Selenium:
$ mv downloads/selenium-server-standalone-2.48.2.jar /usr/local/bin
$ java -jar selenium-server-standalone-2.48.2.jarSelenium for Windows (Optional)
Create file "selenium.bat" with code:
@ECHO OFF
SET BIN_TARGET=%~dp0/selenium-server-standalone-2.48.2.jar
java -jar "%BIN_TARGET%" %*Create an environment variable pointing to the file folder .jar
Ready, now you can running Selenium via command line.
$ cd vendor/bin
$ phpunit ../../src/App/Testsor if exists variable of enviroment "phpunit", use in the root. To running phpunit.xml.dist:
$ phpunitFor more, see: here