【发布时间】:2012-06-06 11:15:56
【问题描述】:
我对 SimpleTest / xdebug 测试类有疑问 - 具体来说,我注册了一个关闭函数来关闭我的测试覆盖并保存结果。
但是,这仍然(正确地)显示为从未达到:
if (error_condition) {
die();
} // This line is never actually reached, and shows up in the report as unreached, confusing the automatic analyzers.
除了避免使用 'die' 退出,而是使用异常,有没有办法将排队标记为“不测试”?
【问题讨论】:
标签: php code-coverage xdebug simpletest