Mercurial > hg > isophonics-drupal-site
view vendor/pear/console_table/tests/border-ascii.phpt @ 5:c69a71b4f40f
Add slideshow module
author | Chris Cannam |
---|---|
date | Thu, 07 Dec 2017 14:46:23 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
--TEST-- Border: default ASCII mode --FILE-- <?php error_reporting(E_ALL | E_NOTICE); if (file_exists(dirname(__FILE__) . '/../Table.php')) { require_once dirname(__FILE__) . '/../Table.php'; } else { require_once 'Console/Table.php'; } $table = new Console_Table(CONSOLE_TABLE_ALIGN_LEFT, CONSOLE_TABLE_BORDER_ASCII); $table->setHeaders(array('City', 'Mayor')); $table->addRow(array('Leipzig', 'Major Tom')); $table->addRow(array('New York', 'Towerhouse')); echo $table->getTable(); ?> --EXPECT-- +----------+------------+ | City | Mayor | +----------+------------+ | Leipzig | Major Tom | | New York | Towerhouse | +----------+------------+