public function testSetRowsAfterAddRows()
 {
     $count = 10;
     $this->assertTrue($count > 1, "Test doesn't work if count <= 1");
     $rows = array();
     for ($i = 0; $i < $count; $i++) {
         $row = new TableRow();
         $row->addCell(new TableCell(new NumberValue($i)));
         $rows[] = $row;
     }
     $data = new DataTable();
     $data->addColumn(new ColumnDescription('index', ValueType::NUMBER));
     $data->addRows($rows);
     array_shift($rows);
     // remove 1 element from rows
     $data->setRows($rows);
     // reset table rows to new $rows
     $this->assertSame($count - 1, $data->getNumberOfRows(), "row count must match");
 }