PHPUnit is used for unit testing of PHP code.Inorder to install "PHPUnit in Windows/WAMP" perform the following steps
- Move to the directory where WAMP Server or PHP is installed using the command prompt. For example C:\wamp\bin\php\php5.2.3\>
- Then run "go-pear.bat" file for complete installation of PEAR. Once you run this command it will ask for some confirmation like
"Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :"...... If you are not sure what to use then just go with the default selection by hitting "Enter". - Once done you will see an information like this....[I have provided only the part] *WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\wamp\bin\php\php5.2.6\PEAR_ENV
.reg .This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
Press any key to continue . . . - Next run the "PEAR_ENV.reg" file which has just been created. This file is used to create the environmental variable.
- To register the phpunit channel with pear run the command "pear channel-discover pear.phpunit.de". Once done you can install all the necessary packages.
- Next step is to install the following inorder for phpunit to be installed >pear install pear/benchmark >pear install pear/console_Getopt
- Then run the command "pear install pear/phpunit2"
- Once all done correctly you will be able to see the "PHPUnit" folder inside the PHP folder
1 comments:
What type of window treatment is the right one for a kitchen with a double windonw?
Thank-you
Silver MLM
Post a Comment