You are here

function Drupali18nTestCase::printDebug in Internationalization 7

Same name and namespace in other branches
  1. 6 tests/drupal_i18n_test_case.php \Drupali18nTestCase::printDebug()

Print out a variable for debugging

2 calls to Drupali18nTestCase::printDebug()
Drupali18nTestCase::printObject in ./i18n.test
Debug dump object with some formatting
Drupali18nTestCase::printPage in ./i18n.test
Print out current HTML page

File

./i18n.test, line 371
Base class for Internationalization tests

Class

Drupali18nTestCase
@file Base class for Internationalization tests

Code

function printDebug($data, $title = 'Debug') {
  $output = '<h2>' . $title . '<h2 />';
  $output .= '<pre>';
  $output .= is_array($data) || is_object($data) ? print_r($data, TRUE) : $data;
  $output .= '<pre>';

  //$this->assertTrue(TRUE, $output);
  $this
    ->verbose($output);
}