首页 > Windows开发 > 详细

windows xampp下安装phpunit

时间:2014-02-09 15:57:21      阅读:458      评论:0      收藏:0      [点我收藏+]
用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

原文:http://blog.csdn.net/qmhball/article/details/18985871

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!