Ejemplo n.º 1
0
 public function testSetRowsExistingRowsShouldBeReplaced()
 {
     $table = new VcsStats_Report_Element_Table();
     $table->addRow(array('Value 0a', 'Value 0b', 'Value 0c'));
     $rows = array(array('Value 1a', 'Value 1b', 'Value 1c'), array('Value 2a', 'Value 2b', 'Value 2c'), array('Value 3a', 'Value 3b', 'Value 3c'));
     $table->setRows($rows);
     $this->assertSame($rows, $table->getRows());
 }