我最近更新了Sebastian Bergmann的PHPUnit,当我尝试运行测试用例时,我将其作为输出:
...EEE.EEEEE.E.EE............EFFFE.F..FF.........SSSSSSSSSSSSSS 63 / 110 ( 57%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS....W.W 110 / 110 (100%)
Run Code Online (Sandbox Code Playgroud)
根据文档,我可以发现:
. Success
E Error
F Failed
Run Code Online (Sandbox Code Playgroud)
我不知道什么是W和S这里.谁能告诉我那是什么?如果附加信息有帮助,W则为黄色并S为蓝色.
Pra*_*man 13
根据文件:
. Printed when the test succeeds.
F Printed when an assertion fails while running the test method.
E Printed when an error occurs while running the test method.
R Printed when the test has been marked as risky (see Chapter 6).
S Printed when the test has been skipped (see Chapter 7).
I Printed when the test is marked as being incomplete or not yet implemented (see Chapter 7).
Run Code Online (Sandbox Code Playgroud)
并根据源代码:
public function addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, $time)
{
$this->writeProgressWithColor('fg-yellow, bold', 'W');
$this->lastTestFailed = true;
}
Run Code Online (Sandbox Code Playgroud)
该黄色大胆的W是警告.希望这能回答你的问题.
| 归档时间: |
|
| 查看次数: |
2722 次 |
| 最近记录: |