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