1. 不可测试 PHP 代码的重构策略
http://www.phpunit.cn/manual/current/zh_cn/installation.html
2. phpunit 的中文手册
http://www.phpunit.cn/manual/current/zh_cn/installation.html#installation.composer
phpunit 可以通过composer下载
{
"require-dev": {
"phpdocumentor/phpdocumentor": "^2.8",
"evert/phpdoc-md" : "~0.2.0",
"phpunit/phpunit": "4.8.*"
}
}
3. ThinkPHP配置PHPUnit,下载地址
http://blog.coinidea.com/web%E5%BC%80%E5%8F%91/php-1096.html