几个月前用PHPUnit
设置Codeigniter
并运行2或3个简单测试后,一切似乎都正常。
执行时:
php phpunit.phar --debug
结果集如下:
开始测试'Welcome_test :: test_index'..开始测试 'welcome_test :: test_method_404'..开始测试 'Welcome_test :: test_APPPATH' ..
时间:1.23秒,记忆:13.25 Mb
好(3次测试,3次断言)
经过一段时间没有使用它,我回去再次运行一些简单的测试,但现在结果包括一个JSON
对象:
{
"event": "suiteStart",
"suite": "Codeigniter Application Test Suite",
"tests": 20
} {
"event": "suiteStart",
"suite": "Welcome_test",
"tests": 3
} {
"event": "testStart",
"suite": "Welcome_test",
"tests": "Welcome_test::test_index"
}
Starting test 'Welcome_test::test_index'.
{
"event": "test",
"suite": "Welcome_test",
"tests": "Welcome_test::test_index",
"status": "pass",
"time": 0.00498656565,
"trace": [],
"message": "",
"output": ""
}
....
Time: 1.23 seconds, Memory: 13.25 Mb
OK (3 Tests, 3 Assertions)
JSON
输出正在使其他东西中断,但我不记得做任何事情来获得这个结果。
有关如何处理不打印JSON
结果的任何想法?
由于