本文整理汇总了PHP中TextReporter::paintFail方法的典型用法代码示例。如果您正苦于以下问题:PHP TextReporter::paintFail方法的具体用法?PHP TextReporter::paintFail怎么用?PHP TextReporter::paintFail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextReporter
的用法示例。
在下文中一共展示了TextReporter::paintFail方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: paintFail
function paintFail($message)
{
parent::paintFail($message);
$this->failed_tests[] = '[FLR] ' . $this->_extractErrorFileAndLine($message);
}
示例2: paintFail
/**
* Paint fail faildetail to STDERR.
*/
function paintFail($message)
{
parent::paintFail($message);
fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
}
示例3: paintFail
function paintFail($message) {
parent::paintFail($message);
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
$out = '';
$out.= implode(" -> ", $breadcrumb);
$out.= " -> " . $message . "\n";
$this->fail_messages[] = $out;
if (!isset($this->_failCounts[$this->suiteName])) {
$this->_failCounts[$this->suiteName] = 0;
}
if (!isset($this->_failCounts[$this->testFileName])) {
$this->_failCounts[$this->testFileName] = 0;
}
if (!isset($this->_failCounts[$this->testMethodName])) {
$this->_failCounts[$this->testMethodName] = 0;
}
$this->_failCounts[$this->testMethodName]++;
$this->_failCounts[$this->testFileName]++;
$this->_failCounts[$this->suiteName]++;
}