1. Open up the console with all administrative privileges especially in Vista
2. Go to the directory where PHP is installed
3. Execute command:
php PEAR/go-pear.phar4. Follow the instructions, and ignore the additional offerings to configure it5. Install PHPUnit by:
pear channel-discover pear.phpunit.depear install phpunit/PHPUnit6. Download Selenium PHP PEAR extension and place into your PHP directory7. Run:
pear install Testing_Selenium-0.4.3.tar8. Download the sample GoogleTest and assuming you put it in C:\Tests folder9. Now run:
phpunit --verbose GoogleTest C:/Tests/GoogleTest.php10. Remember the class name GoogleTest must be the same as the class name defined in the GoogleTest.phpSource: [Geek With Blogs]
No comments:
Post a Comment