PHPUnit installation under Windows environment

Original link: http://www.cnblogs.com/guoyongrong/p/3300809.html

Installation under Windows environment PHPUnit, in this tidy for your reference.

I tested the installation environment: Windows7 (win32) + the Apache (2.2.13) + PHP (5.3.6)

1. Open the Console window as an administrator;
2. enter php installation directory, you need to configure before you install the PEAR install PHP environment If not own PEAR;
3. first install the PEAR:
        > Go-pear.bat
        then been hit the Enter key (the Enter)
4. prompt PEAR expansion pack after installation is complete default, allows prompt configuration options php.ini file include_path point to the installation directory pear, enter "Y" and press enter;
5. close the console window; double-click the file "PEAR_ENV.reg", the relevant information into the registry; restart the Apache;
6. to re-open a new administrator the console window;
7. Next, you can install PHPUnit:
        > PEAR-the Discover Channel pear.phpunit.de
        > phpunit install PEAR / PHPUnit
8. If you are prompted to install fails, it should be version, need to download the update:
        > PEAR upgrade-all
        can view the version information -V PEAR
9. after the update is complete, you can re-install PHPUnit:
        >pear channel-discover pear.phpunit.de
        >pear install phpunit/PHPUnit

        If the error is as follows:

          No releases available for package "pear.phpunit.de/PHPUnit" install failed。
10.    解决方式如下:

        > Pear clear-cache (to clear the cache error log information)

        > pear install -a -f phpunit / PHPUnit ( reinstalling)
11. The installation is completed!

 

Reprinted from : http://flyer0126.iteye.com/blog/1441817

Reproduced in: https: //www.cnblogs.com/guoyongrong/p/3300809.html

Guess you like

Origin blog.csdn.net/weixin_30363509/article/details/94794458