public function testGetSetTotal()
 {
     $expected = PHP_INT_MAX;
     $this->assertEquals(0, $this->instance->getTotal());
     $this->assertInstanceOf(AnalyticsExportRegionalResult::class, $this->instance->setTotal($expected));
     $this->assertEquals($expected, $this->instance->getTotal());
 }
 /**
  * @param array $regionalData
  * @return ArrayCollection
  */
 protected function populateRegionalResponses(array $regionalData)
 {
     $regionalResults = new ArrayCollection();
     foreach ($regionalData as $regionalResponse) {
         $regionalEntity = new AnalyticsExportRegionalResult();
         $regionalEntity->setTotal($regionalResponse['total'])->setCountyName($regionalResponse['county'])->setDistrictName($regionalResponse['district']);
         $regionalResults->add($regionalEntity);
     }
     return $regionalResults;
 }