Mercurial > hg > isophonics-drupal-site
diff vendor/pear/console_table/tests/no_header.phpt @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/pear/console_table/tests/no_header.phpt Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,21 @@ +--TEST-- +Table without header +--FILE-- +<?php + +if (file_exists(dirname(__FILE__) . '/../Table.php')) { + require_once dirname(__FILE__) . '/../Table.php'; +} else { + require_once 'Console/Table.php'; +} + +$table = new Console_Table(); +$table->addData(array(array('foo', 'bar'))); + +echo $table->getTable(); + +?> +--EXPECT-- ++-----+-----+ +| foo | bar | ++-----+-----+