Exemplo n.º 1
0
 public function testReverseColumnOrder()
 {
     $columnBag = with(new \mechanicious\Columnizer\Columnizer($this->mockData))->columnizeRowArray();
     $tableman = new \mechanicious\Tableman\Tableman($columnBag);
     $tableman->reverse();
     $this->assertEquals($tableman->getColumnHeaders(), array('hobby', 'age', 'name', 'id'));
 }