function Drupali18nTestCase::dumpTable in Internationalization 6        
                          
                  
                        Same name and namespace in other branches
- 7 i18n.test \Drupali18nTestCase::dumpTable()
File
 
   - tests/drupal_i18n_test_case.php, line 259
Class
  
  - Drupali18nTestCase 
- Test case for typical Drupal tests.
Code
function dumpTable($table) {
  $result = db_query('SELECT * FROM {' . $table . '}');
  $output = 'Table dump <strong>' . $table . '</strong>:';
  while ($row = db_fetch_array($result)) {
    $rows[] = $row;
    if (empty($header)) {
      $header = array_keys($row);
    }
  }
  if (!empty($rows)) {
    $output .= theme('table', $header, $rows);
  }
  else {
    $output .= ' No rows';
  }
  $this
    ->assertTrue(TRUE, $output);
}