protected function BmTestBase::verbose in Backup and Migrate 7.3
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
3 calls to BmTestBase::verbose()
- BmTestBase::assertSelectOptions in tests/
BmTestBase.test - Confirm that a selector has the expected items.
- BmTestBasics::testQuickBackup in tests/
BmTestBasics.test - Verify the main page has the expected form, then run a basic backup.
- BmTestProfiles::testFilenameOptions in tests/
BmTestProfiles.test - Confirm the backup filename processes work as expected.
File
- tests/
BmTestBase.test, line 46 - Shared functionality to make the rest of the tests simpler.
Class
- BmTestBase
- Base class for testing a module's custom tags.
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);
}