public function testShouldBeAbleToProduceArrayOfCells() { $cellData = $this->data[0]; $cellsArray = $this->parser->rowDataToCells($cellData); $this->assertEquals(count($cellData), count($cellsArray)); $this->assertInstanceOf("Datagrid\\BasicElements\\Cell", $cellsArray[0]); }
public function __construct(array $rowData, array $hidedColumns) { $parser = new Parser(); $this->cells = $parser->rowDataToCells($rowData); $this->hidedColumns = $hidedColumns; $this->html = new Html(); }