manual configuration of Integreted Development Environment like netbeans ide with xampp for novice(FanOfTheYII)in windows environment for PHPUnit Test

[b]manual configuration of Integreted Development Environment like netbeans ide with xampp for novice(FanOfTheYII)in windows environment for PHPUnit Test.

Step-1:[/b]we have need to download YAML1.0.2

Step-2:Uncompress and create C:\xampp\php\PEAR\SymphonyComponents\YAML,

Step-3:Copy the files in lib/*(from YAML Folder) into C:\xampp\php\PEAR\SymphonyComponents\YAML .

Step-4:download PHPUnit-3.4.6.tgz

Step-5:Uncompress and copy the PHPUnit folder to C:\xampp\php\PEAR

Step-6:Copy the 4 remaining files phpunit.* and dbunit.* (from downloaded PHPUnit Folder)to C:\xampp\php\PEAR

Step-7:Edit C:\xampp\php\PEAR\phpunit.bat at the bottom(edit with any text editor like notepad):

                     set PHPBIN="c:\xampp\php\php.exe"





                    %PHPBIN% "c:\xampp\php\PEAR\phpunit.php" %*

## IDE Integration

NetBeans under Windows + XAMPP

  • Tools->Options select PHP tab
  • Under General
  • Under Command line ass PHP interpreter as C:\xampp\php\php.exe
  • Under Global Include Path add C:\xampp\php\PHP\PHPUnit and Path to your Yii framework Folder.
  • Under the Unit Testing tab
  • PHPUnit script: C:\xampp\php\PEAR\phpunit.bat
  • And play with PHPUnit test your own way.