2007年8月14日星期二

PHP Unit 安装

1. 安装
方法一:通过 PEAR 安装
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit

方法二:
1.下载压缩包,解压,设置 include_path
2. 将 pear-phpunit 脚本改名为 phpunit
3. 将脚本中 @php_bin@ 替换为 php 命令行解析器
4. 拷贝到 PATH 能搜索到的目录,或者 在 PATH 添加相应目录。
5. linux下添加执行属性 (chmod +x phpunit)