Esempio n. 1
0
 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]);
 }
Esempio n. 2
0
 public function __construct(array $rowData, array $hidedColumns)
 {
     $parser = new Parser();
     $this->cells = $parser->rowDataToCells($rowData);
     $this->hidedColumns = $hidedColumns;
     $this->html = new Html();
 }