function MessagingTestCase::dumpLogs in Messaging 7
Same name and namespace in other branches
- 6.4 tests/messaging_test_case.inc \MessagingTestCase::dumpLogs()
File
- tests/
messaging_test_case.inc, line 82
Class
Code
function dumpLogs() {
if ($logs = messaging_log_get()) {
$rows = array();
foreach ($logs as $log) {
list($type, $string, $append, $objects) = _messaging_log_format($log);
$rows[] = array(
$type,
$string,
$this
->formatTable($append),
$this
->formatTable($objects),
);
}
$this
->printDebug(theme_table(array(), $rows), 'Notifications Log');
}
}