/** * */ 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)); }