/**
  * @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;
 }
Example #2
0
 public function testGetCity()
 {
     $this->assertSame("Krakow", $this->address->getCity()->toNative());
 }