Example #1
0
 public function testDefaultColumnAlign()
 {
     $table = new Table\Table(array('columnWidths' => array(10)));
     $table->setDefaultColumnAlign(0, Table\Column::ALIGN_CENTER);
     $table->appendRow(array('foobar'));
     $this->assertEquals($table->render(), "┌──────────┐\n│  foobar  │\n└──────────┘\n");
 }