本文整理汇总了PHP中SimpleReporter::paintFooter方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleReporter::paintFooter方法的具体用法?PHP SimpleReporter::paintFooter怎么用?PHP SimpleReporter::paintFooter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleReporter
的用法示例。
在下文中一共展示了SimpleReporter::paintFooter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: paintFooter
/**
* @param string $testName
*/
public function paintFooter($testName)
{
parent::paintFooter($testName);
$this->xmlWriter->endTestSuites();
}
示例2: paintFooter
public function paintFooter($testName)
{
parent::paintFooter($testName);
$passes = $this->getPassCount();
$fails = $this->getFailCount();
$errors = $this->getExceptionCount();
$testsComplete = $this->getTestCaseProgress();
$testsTotal = $this->getTestCaseCount();
if ($fails + $errors > 0) {
$id = 'footer_fail';
} else {
$id = 'footer_pass';
}
$microTimeArray = explode(' ', microtime());
$executionTime = $microTimeArray[1] + $microTimeArray[0] - $this->_microTimeStart;
echo '<div id="', $id, '">';
echo ' <span class="bold">', $testsComplete, '/', $testsTotal, '</span> test cases complete:', "\n";
echo ' <span class="bold">', $passes, '</span> passes, ';
echo ' <span class="bold">', $fails, '</span> fails and ';
echo ' <span class="bold">', $errors, '</span> errors.';
echo ' <br />';
echo ' All tests completed in <span class="bold">', round($executionTime, 4), '</span> seconds.';
echo '</div>', "\n";
echo ' </td>', "\n";
echo ' </tr>', "\n";
echo ' </table>', "\n";
echo ' </body>', "\n";
echo '</html>', "\n";
}