Install PHPUnit (Wndws & Yii Framework)
- Open a command prompt and go to C:xamppphp
- Type “pear update-channels” (updates channel definitions)
- Type “pear upgrade” (upgrades all existing packages and pear)
- Type “pear channel-discover components.ez.no” (this is needed for PHPUnit)
- Type “pear channel-discover pear.symfony-project.com” (also needed by PHPUnit)
- Type “pear channel-discover pear.phpunit.de” (This IS phpunit)
- Type “pear install —alldeps phpunit/PHPUnit” (installs PHPUnit and all dependencies)
Install java jdk, then copy path x:Program Filesjavajdkxxbin to environment variable (path)
Copy path x:xamppphp to environment variable too..
Open command prompt.. then type ‘java -jar seleniumxxxx.jar’
Create ‘SiteTest.php’
Open Command prompt and type “phpunit functionalSiteTest.php”