simpletest

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

http://www.uml.org.cn/test/200908136.asp