Installing PEAR and PHPUnit on WAMP

丶灬走出姿态 提交于 2020-02-14 03:23:29

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!