Drupal investigation

no_header.phpt 364B

12345678910111213141516171819202122
  1. --TEST--
  2. Table without header
  3. --FILE--
  4. <?php
  5. if (file_exists(dirname(__FILE__) . '/../Table.php')) {
  6. require_once dirname(__FILE__) . '/../Table.php';
  7. } else {
  8. require_once 'Console/Table.php';
  9. }
  10. $table = new Console_Table();
  11. $table->addData(array(array('foo', 'bar')));
  12. echo $table->getTable();
  13. ?>
  14. --EXPECT--
  15. +-----+-----+
  16. | foo | bar |
  17. +-----+-----+