Ejemplo n.º 1
0
 public function testGetAllColumns()
 {
     $columnBag = with(new \mechanicious\Columnizer\Columnizer($this->mockData))->columnizeRowArray();
     $tableman = new \mechanicious\Tableman\Tableman($columnBag);
     $this->assertEquals($tableman->getAllColumns()['id']->last(), 2);
     $this->assertEquals(count($tableman->getAllColumns()), 4);
     $this->assertTrue($tableman->getAllColumns()['id'] instanceof \mechanicious\Columnizer\Column);
 }