You are here

protected function MetatagTestBase::verbose in Metatag 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()

20 calls to MetatagTestBase::verbose()
MetatagCoreImageTest::testConfigAbsoluteURL in tests/MetatagCoreImageTest.test
Confirm images can be added to a global config with its absolute URL.
MetatagCoreImageTest::testConfigDrupalRelativeURL in tests/MetatagCoreImageTest.test
Confirm images can be added to a global config using its relative URL.
MetatagCoreImageTest::testConfigImageWithSpaceInURL in tests/MetatagCoreImageTest.test
Confirm images with a space in its URL will be handled properly.
MetatagCoreImageTest::testConfigInternalURL in tests/MetatagCoreImageTest.test
Confirm images can be added to a global config with its internal URI.
MetatagCoreImageTest::testConfigProtocolRelativeURL in tests/MetatagCoreImageTest.test
Confirm images can be added to a global config w its protocol-relative URL.

... See full list

File

tests/MetatagTestBase.test, line 43
A base class for the Metatag tests, provides shared methods.

Class

MetatagTestBase
A base class for the Metatag tests, provides shared methods.

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);
}