function Drupali18nTestCase::printDebug in Internationalization 6
Same name and namespace in other branches
- 7 i18n.test \Drupali18nTestCase::printDebug()
Print out a variable for debugging
2 calls to Drupali18nTestCase::printDebug()
- Drupali18nTestCase::printObject in tests/
drupal_i18n_test_case.php - Debug dump object with some formatting
- Drupali18nTestCase::printPage in tests/
drupal_i18n_test_case.php - Print out current HTML page
File
- tests/
drupal_i18n_test_case.php, line 237
Class
- Drupali18nTestCase
- Test case for typical Drupal tests.
Code
function printDebug($data, $title = '') {
$string = is_array($data) || is_object($data) ? print_r($data, TRUE) : $data;
$output = $title ? $title . ':' . $string : $string;
//$this->assertTrue(TRUE, $output);
$this
->assertTrue(TRUE, $output, 'Debug');
}