windows xampp下安装phpunit

用xampp把开发环境搬到了本子上,单元测试使用的phpunit当然也不能少!
下面说下在xampp下安装phpunit的方法
1. 进到windows的命令行模式(cmd)
2. 进入xampp的php目录
c:\xampp\php
3. 添加phpunit相关的channel
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear channel-discover pear.symfony.com
pear install pear.symfony.com/Yaml(起初未装此依赖,执行phpunit报错)
4.安装phpunit
pear install –alldeps phpunit/PHPUnit
安装完成后,如果正常的话在php目录下会有phpunitphpunit.bat文件。
phpunit --version查看当前phpunit版本。

windows xampp下安装phpunit

上一篇:报错调试 An attempt has been made to start a new process before the current process has finished its bootstrapping phase


下一篇:windows live writer backup