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

你可能感兴趣的:(windows)