Ejemplo n.º 1
0
 public function testRemoveRegion()
 {
     $country = new Country('iso2Code');
     $region = new Region('combinedCode');
     $country->addRegion($region);
     $this->assertNotEmpty($country->getRegions()->getValues());
     $country->removeRegion($region);
     $this->assertEmpty($country->getRegions()->getValues());
     $this->assertNull($region->getCountry());
 }