protected function DrupalTestCase::verbose

7.x drupal_web_test_case.php protected DrupalTestCase::verbose($message)

Logs verbose message in a text file.

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


$message: The verbose message to be stored.

See also


13 calls to DrupalTestCase::verbose()
DateTimeFunctionalTest::testDateFormatStorage in drupal/modules/system/system.test
Test if the date formats are stored properly.
DrupalHtmlToTextTestCase::assertHtmlToText in drupal/modules/simpletest/tests/mail.test
Helper function for testing drupal_html_to_text().
DrupalHtmlToTextTestCase::testDrupalHtmlToTextBlockTagToNewline in drupal/modules/simpletest/tests/mail.test
Test that text separated by block-level tags in HTML get separated by (at least) a newline in the plaintext version.
DrupalRenderTestCase::assertRenderedElement in drupal/modules/simpletest/tests/common.test
DrupalWebTestCase::assertThemeOutput in drupal/modules/simpletest/drupal_web_test_case.php
Asserts themed output.

... See full list


drupal/modules/simpletest/drupal_web_test_case.php, line 448


Base class for Drupal tests.


protected function verbose($message) {
  if ($id = simpletest_verbose($message)) {
    $class_safe = str_replace('\\', '_', get_class($this));
    $url = file_create_url($this->originalFileDirectory . '/simpletest/verbose/' . $class_safe . '-' . $id . '.html');
    $this->error(l(t('Verbose message'), $url, array('attributes' => array('target' => '_blank'))), 'User notice');