You are here

function DrupalReporter::paintFooter in SimpleTest 5

Same name and namespace in other branches
  1. 6 drupal_reporter.php \DrupalReporter::paintFooter()

Paints the end of the test with a summary of the passes and failures.

@access public

Parameters

string $test_name Name class of test.:

File

./drupal_reporter.php, line 43

Class

DrupalReporter
Minimal drupal displayer. Accumulates output to $_output. Based on HtmlReporter by Marcus Baker

Code

function paintFooter($test_name) {
  $ok = $this
    ->getFailCount() + $this
    ->getExceptionCount() == 0;
  $class = $ok ? 'simpletest-pass' : 'simpletest-fail';
  $this
    ->writeContent('<strong>' . $this
    ->getPassCount() . '</strong> passes, <strong>' . $this
    ->getFailCount() . '</strong> fails and <strong>' . $this
    ->getExceptionCount() . '<strong> exceptions.');
}