Drupal investigation

no_rows.phpt 441B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Table without data
  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->setHeaders(array('foo', 'bar'));
  12. echo $table->getTable();
  13. $table = new Console_Table();
  14. echo $table->getTable();
  15. ?>
  16. --EXPECT--
  17. +-----+-----+
  18. | foo | bar |
  19. +-----+-----+
  20. | | |
  21. +-----+-----+