You are here

protected function MaillogTestCase::verbose in Maillog / Mail Developer 7

Logs a verbose message in a text file.

The link to the verbose message will be placed in the test results as a passing assertion with the text '[verbose message]'.

Parameters

$message: The verbose message to be stored.

Overrides DrupalTestCase::verbose

See also

simpletest_verbose()

1 call to MaillogTestCase::verbose()
MaillogTestCase::getAllMaillogEntries in tests/MaillogTestCase.test
Gets all Maillog entries.

File

tests/MaillogTestCase.test, line 288
Unit-ish tests for the Maillog module.

Class

MaillogTestCase
All unit tests for the module.

Code

protected function verbose($message, $title = NULL) {

  // Handle arrays, objects, etc.
  if (!is_string($message)) {
    $message = "<pre>\n" . print_r($message, TRUE) . "\n</pre>\n";
  }

  // Optional title to go before the output.
  if (!empty($title)) {
    $title = '<h2>' . check_plain($title) . "</h2>\n";
  }
  parent::verbose($title . $message);
}