知识&工具

导航

windows下pear安装和phpunit安装

1.下载http://pear.php.net/go-pear.phar 的go-pear.phar 到php目录

2.cmd运行

D:\wamp\php5.3.13>php go-pear.phar

3.检测版本

D:\wamp\php5.3.13>pear version
PEAR Version: 1.9.4
PHP Version: 5.3.13
Zend Engine Version: 2.3.0 Running on: Windows NT HP 5.1 build 2600 (Windows XP Professional Service Pack) i586

然后是phpunit安装

1.pear的配置修改。

D:\wamp\php5.3.13>pear config-set auto_discover 1
config-set succeeded

2.找寻pear.phpunit.de这个域下的phpunit版本安装

D:\wamp\php5.3.13>pear install pear.phpunit.de/PHPUnit

posted on 2012-08-22 11:25  康乐sty  阅读(270)  评论(0编辑  收藏  举报