测试:
a. 下载测试包:
git clone https://github.com/sebastianbergmann/money.git
b. 进入测试包:
cd money
c. 直接测试:
phpunit --bootstrap src/autoload.php tests
d. 创建 xml 配置文件测试:
d-1. 创建配置文件:
vim phpunit.xml
<phpunit bootstrap="src/autoload.php">
<testsuites>
<testsuite name="随便取">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
d-2. 命令:
phpunit tests
