paintFooter() public method

Paints the test document footer.
public paintFooter ( string $test_name )
$test_name string The top level test.
 /**
  * @param string $testName
  */
 public function paintFooter($testName)
 {
     parent::paintFooter($testName);
     $this->xmlWriter->endTestSuites();
 }
 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";
 }