本文整理匯總了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]++;
}