You are here

function DrupalReporter::paintError in SimpleTest 5

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

Paints a PHP error or exception.

@access public

Parameters

string $message Message is ignored.:

File

./drupal_reporter.php, line 87

Class

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

Code

function paintError($message) {
  parent::paintError($message);
  $this->test_stack[] = array(
    'data' => array(
      $this
        ->_htmlEntities($message),
      'EXCEPTION',
    ),
    'class' => 'simpletest-fail',
  );

  //$this->writeContent($this->_htmlEntities($message). ' EXCEPTION', NULL, 'simpletest-fail');
}