public function testGetGeocodedDataWithUKIPv6()
 {
     $provider = new FreeGeoIpProvider($this->getAdapter());
     $result = $provider->getGeocodedData('::ffff:132.185.255.60');
     $this->assertInternalType('array', $result);
     $this->assertCount(1, $result);
     $result = $result[0];
     $this->assertInternalType('array', $result);
     $this->assertEquals('H9', $result['regionCode']);
 }
Пример #2
0
 public function testGetGeocodedDataWithUKIPv6()
 {
     $provider = new FreeGeoIpProvider(new \Geocoder\HttpAdapter\CurlHttpAdapter());
     $result = $provider->getGeocodedData('::ffff:132.185.255.60');
     $this->assertEquals('H9', $result['regionCode']);
 }