@@ -46,12 +46,12 @@ public function testGeocodeWithLocalhostIPv4(): void
4646 $ provider = new MaxMind ($ this ->getMockedHttpClient (), 'api_key ' );
4747 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('127.0.0.1 ' ));
4848
49- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
49+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
5050 $ this ->assertCount (1 , $ results );
5151
5252 /** @var Location $result */
5353 $ result = $ results ->first ();
54- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
54+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
5555 $ this ->assertEquals ('localhost ' , $ result ->getLocality ());
5656 $ this ->assertEquals ('localhost ' , $ result ->getCountry ()->getName ());
5757 }
@@ -61,12 +61,12 @@ public function testGeocodeWithLocalhostIPv6(): void
6161 $ provider = new MaxMind ($ this ->getMockedHttpClient (), 'api_key ' );
6262 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('::1 ' ));
6363
64- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
64+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
6565 $ this ->assertCount (1 , $ results );
6666
6767 /** @var Location $result */
6868 $ result = $ results ->first ();
69- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
69+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
7070 $ this ->assertEquals ('localhost ' , $ result ->getLocality ());
7171 $ this ->assertEquals ('localhost ' , $ result ->getCountry ()->getName ());
7272 }
@@ -94,12 +94,12 @@ public function testGeocodeWithRealIPv4GetsFakeContentFormattedEmpty(): void
9494 $ provider = new MaxMind ($ this ->getMockedHttpClient (',,,,,,,,, ' ), 'api_key ' );
9595 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.200.247.59 ' ));
9696
97- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
97+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
9898 $ this ->assertCount (1 , $ results );
9999
100100 /** @var Location $result */
101101 $ result = $ results ->first ();
102- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
102+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
103103 $ this ->assertNull ($ result ->getCoordinates ());
104104
105105 $ this ->assertNull ($ result ->getStreetNumber ());
@@ -119,12 +119,12 @@ public function testGeocodeWithRealIPv4GetsFakeContent(): void
119119 ), 'api_key ' );
120120 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.200.247.59 ' ));
121121
122- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
122+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
123123 $ this ->assertCount (1 , $ results );
124124
125125 /** @var Location $result */
126126 $ result = $ results ->first ();
127- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
127+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
128128 $ this ->assertEqualsWithDelta (33.034698486328 , $ result ->getCoordinates ()->getLatitude (), 0.0001 );
129129 $ this ->assertEqualsWithDelta (-96.813400268555 , $ result ->getCoordinates ()->getLongitude (), 0.0001 );
130130 $ this ->assertNull ($ result ->getStreetNumber ());
@@ -151,12 +151,12 @@ public function testGeocodeWithRealIPv4GetsFakeContent(): void
151151 ), 'api_key ' );
152152 $ results = $ provider4 ->geocodeQuery (GeocodeQuery::create ('74.200.247.59 ' ));
153153
154- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
154+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
155155 $ this ->assertCount (1 , $ results );
156156
157157 /** @var Location $result */
158158 $ result = $ results ->first ();
159- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
159+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
160160 $ this ->assertEqualsWithDelta (37.748402 , $ result ->getCoordinates ()->getLatitude (), 0.0001 );
161161 $ this ->assertEqualsWithDelta (-122.415604 , $ result ->getCoordinates ()->getLongitude (), 0.0001 );
162162 $ this ->assertNull ($ result ->getStreetNumber ());
@@ -263,12 +263,12 @@ public function testGeocodeServiceWithRealIPv4(): void
263263 $ provider = new MaxMind ($ this ->getHttpClient ($ _SERVER ['MAXMIND_API_KEY ' ]), $ _SERVER ['MAXMIND_API_KEY ' ]);
264264 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.200.247.159 ' ));
265265
266- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
266+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
267267 $ this ->assertCount (1 , $ results );
268268
269269 /** @var Location $result */
270270 $ result = $ results ->first ();
271- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
271+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
272272 $ this ->assertEqualsWithDelta (33.034698 , $ result ->getCoordinates ()->getLatitude (), 0.1 );
273273 $ this ->assertEqualsWithDelta (-96.813400 , $ result ->getCoordinates ()->getLongitude (), 0.1 );
274274 $ this ->assertNull ($ result ->getBounds ());
@@ -297,12 +297,12 @@ public function testGeocodeOmniServiceWithRealIPv4(): void
297297 );
298298 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.200.247.159 ' ));
299299
300- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
300+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
301301 $ this ->assertCount (1 , $ results );
302302
303303 /** @var Location $result */
304304 $ result = $ results ->first ();
305- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
305+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
306306 $ this ->assertEqualsWithDelta (33.0347 , $ result ->getCoordinates ()->getLatitude (), 0.1 );
307307 $ this ->assertEqualsWithDelta (-96.8134 , $ result ->getCoordinates ()->getLongitude (), 0.1 );
308308 $ this ->assertNull ($ result ->getBounds ());
@@ -332,12 +332,12 @@ public function testGeocodeOmniServiceWithRealIPv4WithSslAndEncoding(): void
332332 );
333333 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('189.26.128.80 ' ));
334334
335- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
335+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
336336 $ this ->assertCount (1 , $ results );
337337
338338 /** @var Location $result */
339339 $ result = $ results ->first ();
340- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
340+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
341341 $ this ->assertEqualsWithDelta (-27.5833 , $ result ->getCoordinates ()->getLatitude (), 0.1 );
342342 $ this ->assertEqualsWithDelta (-48.5666 , $ result ->getCoordinates ()->getLongitude (), 0.1 );
343343 $ this ->assertNull ($ result ->getBounds ());
@@ -367,12 +367,12 @@ public function testGeocodeOmniServiceWithRealIPv6WithSsl(): void
367367 );
368368 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('2002:4293:f4d6:0:0:0:0:0 ' ));
369369
370- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
370+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
371371 $ this ->assertCount (1 , $ results );
372372
373373 /** @var Location $result */
374374 $ result = $ results ->first ();
375- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
375+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
376376 $ this ->assertEqualsWithDelta (40.2181 , $ result ->getCoordinates ()->getLatitude (), 0.1 );
377377 $ this ->assertEqualsWithDelta (-111.6133 , $ result ->getCoordinates ()->getLongitude (), 0.1 );
378378 $ this ->assertNull ($ result ->getBounds ());
0 commit comments