/**
  * @expectedException \Geocoder\Exception\UnsupportedException
  * @expectedExceptionMessage The MapQuestProvider does not support IP addresses.
  */
 public function testGetGeocodedDataWithRealIPv6()
 {
     $provider = new MapQuestProvider($this->getAdapter(), 'api_key');
     $provider->getGeocodedData('::ffff:74.200.247.59');
 }
Пример #2
0
 /**
  * @expectedException \Geocoder\Exception\UnsupportedException
  * @expectedExceptionMessage The MapQuestProvider does not support IP addresses.
  */
 public function testGetGeocodedDataWithRealIPv6()
 {
     $provider = new MapQuestProvider(new \Geocoder\HttpAdapter\CurlHttpAdapter());
     $provider->getGeocodedData('::ffff:74.200.247.59');
 }