public function testDefaultRowFieldsCalculation() { $pivot = new PivotDescription($this->dataTable); $pivot->setColumnFields(array('country', 'region')); $rowFields = $pivot->getRowFields(); $this->assertSame(1, count($rowFields), "rowFields must contain 1 element"); $this->assertSame("day", $rowFields[0], "rowFields[0] must be the name of the first column"); }
/** * @return array */ public function getRowFieldIndexes() { $indexes = $this->getColumnIndexesById($this->pivotDescription->getRowFields()); return $indexes; }