https://github.com/simpletest/simpletest
https://simpletest.org/en/first_test_tutorial.html
无命名空间,可直接下载引用
composer require simpletest/simpletest "^1.2"
或者
#php composer.phar require --prefer-dist simpletest/simpletest "^1.2"
vi composer.json添加
{
"require-dev": {
"simpletest/simpletest": "^1.2"
}
}
composer install
测试入口
tests/all_tests.php
#启动测试服务
php -S localhost:8080 -t tests/site
tests/acceptance_test.php