/**
  *
  */
 public function testGetCoordinates()
 {
     $address = new Address();
     $address->setFullAddress('250 rue du Thor, 34000 Montpellier');
     $coordinates = $this->getLocator('get-coordinates-result.json')->locate($address);
     $this->assertEquals(array(43.617723, 3.915721), array($coordinates->getLatitude(), $coordinates->getLongitude()));
 }
 /**
  *
  */
 public function testGetWithLowRelevance()
 {
     $address = new Address();
     $address->setFullAddress('250 rue du Thor, 34000 Montpellier');
     $this->setExpectedException('Exception');
     $this->getLocator('low-relevance.json')->locate($address);
 }
 /**
  *
  */
 public function testGetWithNoResults()
 {
     $address = new Address();
     $address->setFullAddress('250 rue de Thortank');
     $this->setExpectedException('Exception');
     $this->getLocator('zero-results.json')->locate($address);
 }
 /**
  *
  */
 public function testGetWithNoResults()
 {
     $address = new Address();
     $address->setFullAddress('rue du thor, 34000 montpellier');
     $this->setExpectedException('Exception');
     $this->getLocator('zero-results.json')->locate($address);
 }
 /**
  *
  */
 public function testAccessors()
 {
     $full_address = uniqid();
     $address = new Address();
     $address->setFullAddress($full_address);
     $this->assertEquals($full_address, $address->getFullAddress());
 }