' . $title . '';
    $output .= '';
    $output .= is_array($data) || is_object($data) ? print_r($data, TRUE) : $data;
    $output .= '';
    //$this->assertTrue(TRUE, $output);
    $this->verbose($output);
  }
  /**
   * Debug dump object with some formatting
   */
  function printObject($object, $title = 'Object') {
    $output = $this->formatTable($object);
    $this->printDebug($output, $title);
  }
  /**
   * Print out current HTML page
   */
  function printPage() {
    $this->printDebug($this->drupalGetContent());
  }
  /**
   * Dump table contents
   *
   * @params $table1, $table2..
   *   One or more table names
   */
  function dumpTable() {
    $output = '';
    foreach (func_get_args() as $table) {
      $header = $rows = array();
      $result = db_query('SELECT * FROM {' . $table . '}');
      $output .= 'Table dump ' . $table . ':
';
      while ($row = $result->fetchAssoc()) {
        $rows[] = $row;
        if (empty($header)) {
          $header = array_keys($row);
        }
      }
      if (!empty($rows)) {
        $output .= theme('table', array('header' => $header, 'rows' => $rows));
      }
      else {
        $output .= ' No rows';
      }
      $output .= '
';
    }
    $this->verbose($output);
  }
  /**
   * Format object as table, recursive
   */
  function formatTable($object) {
    foreach ($object as $key => $value) {
      $rows[] = array(
        $key,
        is_array($value) || is_object($value) ? $this->formatTable($value) : $value,
      );
    }
    if (!empty($rows)) {
      return theme('table', array('rows' => $rows));
    }
    else {
      return 'No properties';
    }
  }
}
class Drupali18nConfigTestCase extends Drupali18nTestCase {
  public static function getInfo() {
    return array(
      'name' => 'Multilingual configuration',
      'group' => 'Internationalization',
      'description' => 'Basic configuration for the i18n module',
    );
  }
  function setUp() {
    parent::setUp('translation', 'i18n_node');
    parent::setUpLanguages();
  }
  function testEnableLanguages() {
    // A language with two letter code may help too
    $this->addLanguage('pt-br');
    // Disable Italian to test the translation behavior with disabled languages.
    $this->addLanguage('it');
    $edit = array('enabled[it]' => FALSE);
    $this->drupalPost('admin/config/regional/language', $edit, t('Save configuration'));
  }
}