Windows environment assembly pear, PHPUnit

Source: Internet
Author: User
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!

?

?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.