本文整理汇总了PHP中SimpleReporter::paintFail方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleReporter::paintFail方法的具体用法?PHP SimpleReporter::paintFail怎么用?PHP SimpleReporter::paintFail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleReporter
的用法示例。
在下文中一共展示了SimpleReporter::paintFail方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: paintFail
function paintFail($message)
{
parent::paintFail($message);
print $this->_getIndent(1);
print "<" . $this->_namespace . "fail>";
print $this->toParsedXml($message);
print "</" . $this->_namespace . "fail>\n";
}
示例2: paintFail
function paintFail($message)
{
parent::paintFail($message);
$this->_response->addContent($this->getFailCount() . ") {$message}\n");
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
$this->_response->addContent("\tin " . implode("\n\tin ", array_reverse($breadcrumb)));
$this->_response->addContent("\n");
}
示例3: paintFail
/**
* Paint fail faildetail to STDERR.
*/
function paintFail($message)
{
parent::paintFail($message);
fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
if ($this->_failinfo) {
fwrite(STDERR, ' additional info was: ' . $this->_failinfo . "\n");
$this->_failinfo = '';
}
}
示例4: paintFail
/**
* Paints the test failure as a stack trace.
* @param string $message Failure message displayed in
* the context of the other tests.
* @access public
*/
function paintFail($message)
{
parent::paintFail($message);
print "\n\t" . $this->getFailCount() . ") {$message}\n";
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
print "\n";
}
示例5: paintFail
function paintFail($message)
{
parent::paintFail($message);
$str = "<span class=\"fail\">Fail</span>: ";
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
$str .= implode(" -> ", $breadcrumb);
$str .= " -> " . $this->_htmlEntities($message) . "<br />\n";
$this->_response->body->append('MAIN', $str);
}
示例6: paintFail
function paintFail($message)
{
SimpleReporter::paintFail($message);
if ($this->getFailCount() <= 10) {
print $this->test_name . ": {$message}\n";
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
print "\n";
}
}
示例7: paintFail
function paintFail($message)
{
parent::paintFail($message);
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
$test = implode("->", $breadcrumb);
$result["time"] = time();
$result["status"] = "Failed";
$result["test"] = $test;
$result["message"] = $message;
$this->results[] = $result;
}
示例8: paintFail
public function paintFail($message)
{
parent::paintFail($message);
if (!$this->showFails) {
return;
}
echo ' <tr class="fail">', "\n";
echo ' <td nowrap="nowrap" valign="top"><span class="fail">Fail</span></td>', "\n";
echo ' <td nowrap="nowrap" valign="top"><span class="test_case">', $this->_getTestCase(), '</span></td>', "\n";
echo ' <td nowrap="nowrap" valign="top">', $this->_htmlEntities($message), '</td>', "\n";
echo ' </tr>', "\n";
flush();
}
示例9: paintFail
/**
* Paint fail faildetail to STDERR.
*/
function paintFail($message)
{
parent::paintFail($message);
fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
}
示例10: paintFail
function paintFail($message)
{
$this->addTest(false);
// echo 'fail: ' . $message . "\n";
parent::paintFail($message);
}
示例11: paintFail
/**
* Paints the test failure with a breadcrumbs
* trail of the nesting test suites below the
* top level test.
* @param string $message Failure message displayed in
* the context of the other tests.
* @access public
*/
function paintFail($message)
{
parent::paintFail($message);
$this->test_stack[] = array('data' => array($this->_htmlEntities($message), 'FAIL'), 'class' => 'simpletest-fail');
//$this->writeContent($this->_htmlEntities($message). ' FAIL', NULL, 'simpletest-fail');
}
示例12: paintFail
function paintFail($message)
{
parent::paintFail($message);
$this->failureCount++;
}
示例13: paintFail
/**
* Paint fail faildetail to STDERR.
*/
function paintFail($message)
{
parent::paintFail($message);
echo 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message);
}
示例14: paintFail
/**
* @param string $message
*/
public function paintFail($message)
{
parent::paintFail($message);
$this->paintFailureOrError($message, 'failure');
++$this->assertionCount;
}
示例15: paintFail
function paintFail($message)
{
SimpleReporter::paintFail($message);
print '<div class="fail"><strong>Fail</strong>: ';
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
print implode(" -> ", $breadcrumb);
print '<p class="message">' . $this->_htmlEntities($message) . "</p></div>\n";
}