public function testGetReversedDataWithRealCoordinates()
 {
     $provider = new GeocoderCaProvider(new \Geocoder\HttpAdapter\CurlHttpAdapter());
     $result = $provider->getReversedData(array('40.707507', '-74.011255'));
     $this->assertEquals(40.707507, $result['latitude'], '', 0.0001);
     $this->assertEquals(-74.01125500000001, $result['longitude'], '', 0.0001);
     $this->assertEquals(2, $result['streetNumber']);
     $this->assertEquals('New St', $result['streetName']);
     $this->assertEquals(10005, $result['zipcode']);
     $this->assertEquals('New York', $result['city']);
     $this->assertEquals('NY', $result['cityDistrict']);
     $this->assertNull($result['region']);
     $this->assertNull($result['regionCode']);
     $this->assertNull($result['country']);
     $this->assertNull($result['countryCode']);
     $this->assertNull($result['timezone']);
 }
 public function testGetReversedDataWithRealCoordinates()
 {
     $provider = new GeocoderCaProvider($this->getAdapter());
     $result = $provider->reverse('40.707507', '-74.011255');
     $this->assertInternalType('array', $result);
     $this->assertCount(1, $result);
     $result = $result[0];
     $this->assertInternalType('array', $result);
     $this->assertEquals(40.707507, $result['latitude'], '', 0.0001);
     $this->assertEquals(-74.01125500000001, $result['longitude'], '', 0.0001);
     $this->assertEquals('1', $result['streetNumber']);
     $this->assertEquals('New ST', $result['streetName']);
     $this->assertEquals(10005, $result['zipcode']);
     $this->assertEquals('NEW YORK', $result['city']);
     $this->assertEquals('NY', $result['cityDistrict']);
     $this->assertNull($result['country']);
     $this->assertNull($result['countryCode']);
     $this->assertNull($result['timezone']);
 }