If you are recentaly updated your PHPUnit to PHPUnit-3.6.10, you may face a issue with selenium functional testing using selenium server, because of unavailability of PHPUnit selenium package.
Warning: include(PHPUnit_Extensions_SeleniumTestCase_Driver.php): failed to open stream: No such file or directory in C:\xampp\htdocs\yii\framework\YiiBase.php on line 418
Warning: include(): Failed opening ‘PHPUnit_Extensions_SeleniumTestCase_Driver.php’ for inclusion (include_path=’.;C:\xampp\htdocs\witt\protected\components;C:\xampp\htdocs\witt\protected\models;C:\xampp\php\PEAR’) in C:\xampp\htdocs\yii\framework\YiiBase.php on line 418
Fatal error: Class ‘PHPUnit_Extensions_SeleniumTestCase_Driver’ not found in C:\xampp\php\PEAR\PHPUnit\Extensions\SeleniumTestCase.php on line 602
To resolve above issue you have to install PHPUnit_Selenium package manually after this it will be solved.
I’m done step by step instructions.and I have added all the necessary path in my windows enviroment variables and my php.ini file.by following instruction:
On Windows 7 it will be: 1) My Computer -> Right click -> Properties 2) Advanced System Settings 3) Click “Environment variables” button 4) Find “Path” entry in “System variable” section and: a) add to the end “;C:\PHP” (without quotes) or add to the front “C:\PHP;”
but when I going to execute following command,I got following error:
I’m pass this error with copy the phpunit.bat in(C:\xampp\php) to system32 folder( C:\Windows\System32 ) and it work.
tip for install pear:
if some of problem accure during install.for install again is beter to delete pear folder in following path :