Windows environment installation pear, PHPUnit
PS: Original article, if you want to reprint, please specify the source, thank you!????
This address: http://flyer0126.iteye.com/blog/1441817
?
Install PHPUnit in Windows environment, here to tidy up, for everyone to reference.
I test the installation environment: Windows7 (Win32) + APACHE (2.2.13) + PHP (5.3.6)
1.??? Open the Console window as an administrator;
2.??? Into the PHP installation directory, before installing pear need to configure the installation of PHP environment, if there is no self-pear;
3.??? First install the Pear:
??????? >go-pear.bat
??????? Then always hit enter (enter)
4.??? Tip Pear The default expansion pack installation is complete, allow the prompt to configure the include_path option in the php.ini file to point to the Pear installation directory, enter "Y" and return;
5.??? Close this console window; Double-click the file "Pear_env.reg" to import the relevant information into the registry; restart Apache;
6.??? Re-open a new console window as an administrator;
7.??? Next, you can install the PHPUnit:
??????? >pear Channel-discover pear.phpunit.de
??????? >pear Install Phpunit/phpunit
8.??? If the prompt installation fails, it should be a version issue and need to download the update:
??????? >pear Upgrade-all
??????? Version information can be viewed through pear–v
9.??? After the update is complete, you can re-phpunit the installation:
??????? >pear Channel-discover pear.phpunit.de
??????? >pear Install Phpunit/phpunit
??????? If an error occurs as follows:
????????? No releases available for package "Pear.phpunit.de/phpunit" Install failed.
Ten.??? The solution is as follows:
??????? >pear Clear-cache (Clear error logging information cache)
??????? >pear install–a-f Phpunit/phpunit (re-installed)
???. Installation is complete!
?
?