/** * @param Address $address * @return String */ public function buildUrl(Address $address) { $link = $this->url; $link .= str_replace(" ", "+", $address->getStreet()->getName() . " " . $address->getStreet()->getNumber()); $link .= ","; $link .= str_replace(" ", "+", $address->getCity()); return $link; }
public function testGetCountryName() { $this->assertSame(CountryCodeName::getName($this->address->getCountry()->getCode())->toNative(), $this->address->getCountry()->getName()->toNative()); }