Exemplo n.º 1
0
 /**
  *
  */
 public function testBorderWithPadding()
 {
     $tab = new SimpleTable();
     $tab->setHeaders(array('pos', 'desc'));
     $tab->border = true;
     $tab->padding = 1;
     $tab->addRow(array('1', 'one'));
     $tab->addRow(array('2', 'two'));
     $tab->addRow(array('3', 'three'));
     $expected = array('+-----+-------+', '| pos | desc  |', '+-----+-------+', '| 1   | one   |', '| 2   | two   |', '| 3   | three |', '+-----+-------+');
     $this->assertEquals($expected, $tab->getTable(true));
 }