@@ -62,12 +62,12 @@ public function testGeocodeWithLocalhostIPv4(): void
62
62
$ provider = new IpInfoDb ($ this ->getMockedHttpClient (), 'api_key ' );
63
63
$ results = $ provider ->geocodeQuery (GeocodeQuery::create ('127.0.0.1 ' ));
64
64
65
- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
65
+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
66
66
$ this ->assertCount (1 , $ results );
67
67
68
68
/** @var Location $result */
69
69
$ result = $ results ->first ();
70
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
70
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
71
71
$ this ->assertNull ($ result ->getCoordinates ());
72
72
73
73
$ this ->assertNull ($ result ->getPostalCode ());
@@ -112,12 +112,12 @@ public function testGeocodeWithRealIPv4(): void
112
112
$ provider = new IpInfoDb ($ this ->getHttpClient ($ _SERVER ['IPINFODB_API_KEY ' ]), $ _SERVER ['IPINFODB_API_KEY ' ]);
113
113
$ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.125.45.100 ' ));
114
114
115
- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
115
+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
116
116
$ this ->assertCount (1 , $ results );
117
117
118
118
/** @var Location $result */
119
119
$ result = $ results ->first ();
120
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
120
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
121
121
$ this ->assertEqualsWithDelta (36.154 , $ result ->getCoordinates ()->getLatitude (), 0.001 );
122
122
$ this ->assertEqualsWithDelta (-95.9928 , $ result ->getCoordinates ()->getLongitude (), 0.001 );
123
123
$ this ->assertEquals (74101 , $ result ->getPostalCode ());
@@ -154,12 +154,12 @@ public function testGetGeocodedDataWithCountryPrecision(): void
154
154
$ provider = new IpInfoDb ($ this ->getHttpClient ($ _SERVER ['IPINFODB_API_KEY ' ]), $ _SERVER ['IPINFODB_API_KEY ' ], 'country ' );
155
155
$ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.125.45.100 ' ));
156
156
157
- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
157
+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
158
158
$ this ->assertCount (1 , $ results );
159
159
160
160
/** @var Location $result */
161
161
$ result = $ results ->first ();
162
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
162
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
163
163
$ this ->assertNull ($ result ->getCoordinates ());
164
164
165
165
$ this ->assertNull ($ result ->getPostalCode ());
0 commit comments