/**
  * @test
  */
 public function groupValuesIfAllParamsAreEqualsAndYearDoNot()
 {
     $grouper = new DataGrouper();
     $this->assertTrue($grouper->groupDataValues($this->listOfValues()) instanceof HashMap);
     $this->assertTrue($grouper->groupDataValues($this->listOfValues())->get(0) instanceof ArrayObject);
     $this->assertEquals(3, $grouper->groupDataValues($this->listOfValues())->get(0)->count());
 }
Ejemplo n.º 2
0
 private function buildReportForDistinctGroups($valuesGroup1, $valuesGroup2, array $years, DataGrouper $grouper)
 {
     $group1 = $grouper->groupDataValues($valuesGroup1);
     $group2 = $grouper->groupDataValues($valuesGroup2);
     return $this->buildForGroupedData(array($group1, $group2), $years);
 }