You are here

protected function DateFieldTestBase::verbose in Date 7.3

Same name and namespace in other branches
  1. 7.2 tests/DateFieldTestBase.test \DateFieldTestBase::verbose()

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()

9 calls to DateFieldTestBase::verbose()
DateAllDayUiTestCase::testDateTimeSelectWidget in date_all_day/tests/DateAllDayUiTestCase.test
Test the datetime field type with the select field widget.
DateAllDayUiTestCase::testDateTimeTextFieldWidget in date_all_day/tests/DateAllDayUiTestCase.test
Test the datetime field type with the text field widget.
DateAllDayUiTestCase::testIsoDateSelectWidget in date_all_day/tests/DateAllDayUiTestCase.test
Test the ISO date field type with the select field widget.
DateAllDayUiTestCase::testIsoDateTextFieldWidget in date_all_day/tests/DateAllDayUiTestCase.test
Test the ISO date field type with the text field widget.
DateAllDayUiTestCase::testTimestampSelectWidget in date_all_day/tests/DateAllDayUiTestCase.test
Test the timestamp field type with the select field widget.

... See full list

File

tests/DateFieldTestBase.test, line 310
Shared test functionality.

Class

DateFieldTestBase
Shared test functionality.

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