@@ -62,12 +62,12 @@ public function testGeocodeWithLocalhostIPv4(): void
6262 $ provider = new IpInfoDb ($ this ->getMockedHttpClient (), 'api_key ' );
6363 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('127.0.0.1 ' ));
6464
65- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
65+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
6666 $ this ->assertCount (1 , $ results );
6767
6868 /** @var Location $result */
6969 $ result = $ results ->first ();
70- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
70+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
7171 $ this ->assertNull ($ result ->getCoordinates ());
7272
7373 $ this ->assertNull ($ result ->getPostalCode ());
@@ -112,12 +112,12 @@ public function testGeocodeWithRealIPv4(): void
112112 $ provider = new IpInfoDb ($ this ->getHttpClient ($ _SERVER ['IPINFODB_API_KEY ' ]), $ _SERVER ['IPINFODB_API_KEY ' ]);
113113 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.125.45.100 ' ));
114114
115- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
115+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
116116 $ this ->assertCount (1 , $ results );
117117
118118 /** @var Location $result */
119119 $ result = $ results ->first ();
120- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
120+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
121121 $ this ->assertEqualsWithDelta (36.154 , $ result ->getCoordinates ()->getLatitude (), 0.001 );
122122 $ this ->assertEqualsWithDelta (-95.9928 , $ result ->getCoordinates ()->getLongitude (), 0.001 );
123123 $ this ->assertEquals (74101 , $ result ->getPostalCode ());
@@ -154,12 +154,12 @@ public function testGetGeocodedDataWithCountryPrecision(): void
154154 $ provider = new IpInfoDb ($ this ->getHttpClient ($ _SERVER ['IPINFODB_API_KEY ' ]), $ _SERVER ['IPINFODB_API_KEY ' ], 'country ' );
155155 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.125.45.100 ' ));
156156
157- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
157+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
158158 $ this ->assertCount (1 , $ results );
159159
160160 /** @var Location $result */
161161 $ result = $ results ->first ();
162- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
162+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
163163 $ this ->assertNull ($ result ->getCoordinates ());
164164
165165 $ this ->assertNull ($ result ->getPostalCode ());
0 commit comments