コード例 #1
0
ファイル: SimpleTableTest.php プロジェクト: phellow/cli
 /**
  *
  */
 public function testClean()
 {
     $tab = new SimpleTable();
     $tab->border = true;
     $tab->padding = 0;
     $tab->addRow(array('1', 'one'));
     $tab->clean();
     $tab->addRow(array('2', 'two'));
     $tab->addRow(array('3', 'three'));
     $expected = array('+-+-----+', '|2|two  |', '|3|three|', '+-+-----+');
     $this->assertEquals($expected, $tab->getTable(true));
 }