You are here

function DrupalReporter::writeContent in SimpleTest 6

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

writes $msg into the deepest fieldset

Parameters

$msg content to write:

3 calls to DrupalReporter::writeContent()
DrupalReporter::paintFooter in ./drupal_reporter.php
Paints the end of the test with a summary of the passes and failures.
DrupalReporter::paintGroupEnd in ./drupal_reporter.php
Paints the end of a group test. Will paint the page footer if the stack of tests has unwound.
DrupalReporter::paintGroupStart in ./drupal_reporter.php
Paints the start of a group test. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.

File

./drupal_reporter.php, line 232

Class

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

Code

function writeContent($msg, $weight = NULL, $class = 'simpletest') {
  if (!$weight) {
    $weight = $this->weight++;
  }
  $write['content' . $this->content_count++] = array(
    '#value' => '<div class=' . $class . '>' . $msg . '</div>',
    '#weight' => $weight,
  );
  $this
    ->writeToLastField($this->form, $write, $this->form_depth);
}