Installing PEAR and PHPUnit on WAMP

1.安装wamp

2.安装PEAR

Step:

 打开 C:\wamp\bin\php\php5.3.5\php.ini

修改:

 ;phar.require_hash = On

phar.require_hash = Off

运行C:\wamp\bin\php\php5.3.5\go-pear.bat

选择local,默认 YES

添加环境变量:

variable ‘PHP_PEAR_PHP_BIN’ 为C:\wamp\bin\php\php5.3.5\php.exe

修改path,添加:

C:\wamp\bin\php\php5.3.5\

重启apache

 

3安装PHPUnit

先下载  Structures_Graph

http://pear.php.net/package/Structures_Graph/download/

解压 Structures 放在C:\wamp\bin\php\php5.3.5\PEAR

然后运行:

pear install Structures_Graph-1.0.4

pear upgrade pear

pear channel-discover components.ez.no 
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com

pear install --alldeps phpunit/PHPUnit

Meet so Meet. C plusplus I-PLUS....
原文地址:https://www.cnblogs.com/iplus/p/4489964.html