本文整理汇总了PHP中HtmlReporter::paintFail方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlReporter::paintFail方法的具体用法?PHP HtmlReporter::paintFail怎么用?PHP HtmlReporter::paintFail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlReporter
的用法示例。
在下文中一共展示了HtmlReporter::paintFail方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: paintFail
function paintFail($message)
{
ob_start();
parent::paintFail($message);
ob_get_clean();
print "<div class='box' style='margin:auto;width:95%;margin-bottom:20px;'>\n";
print "<span class=\"fail\">Fail</span>: ";
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
$breadcrumb[count($breadcrumb) - 1] = str_replace(array('test_', '_'), array('', ' '), $breadcrumb[count($breadcrumb) - 1]);
print implode("->", $breadcrumb) . '<br>';
print $this->htmlEntities($message) . "\n";
print "</div>\n";
}
示例2: paintFail
function paintFail($message)
{
$this->paintHeader(" " . $_SESSION['test']);
parent::paintFail($message);
if (isset($_SESSION['mod1']) && isset($_SESSION['mod2'])) {
$_SESSION['mod1']->writeAsHtmlTable();
$_SESSION['mod2']->writeAsHtmlTable();
}
$this->paintFooter($_SESSION['test']);
print "<hr><br>";
$_SESSION['fails']++;
if (LOG) {
$file = fopen("testlog.log", "a");
fputs($file, "\r\n" . $_SESSION['test'] . ' fails' . "\r\n");
fclose($file);
}
}
示例3: paintFail
function paintFail($message)
{
static $header = FALSE;
if (!$header) {
$this->newPaintHeader();
$header = TRUE;
}
parent::paintFail($message);
}
示例4: paintFail
function paintFail($message)
{
parent::paintFail($message);
}
示例5: paintFail
function paintFail($message)
{
$message = str_replace(TESTCASESFOLDER, '', $message);
parent::paintFail($message);
}
示例6: paintFail
/**
* Paint fail.
*
* @access public
* @param string $message
* @return void
*/
public function paintFail($message)
{
parent::paintFail($message);
print "<span class=\"fail\">Fail</span>: ";
$breadcrumb = $this->getTestList();
array_shift($breadcrumb);
print implode(" -> ", $breadcrumb);
print " -> " . $this->htmlEntities($message) . "<br />\n";
}