@@ -56,12 +56,12 @@ public function testGeocodeWithLocalhostIPv4(): void
5656 $ provider = new Ipstack ($ this ->getMockedHttpClient (), 'api_key ' );
5757 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('127.0.0.1 ' ));
5858
59- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
59+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
6060 $ this ->assertCount (1 , $ results );
6161
6262 /** @var Location $result */
6363 $ result = $ results ->first ();
64- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
64+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
6565 $ this ->assertEquals ('localhost ' , $ result ->getLocality ());
6666 $ this ->assertEquals ('localhost ' , $ result ->getCountry ()->getName ());
6767 $ this ->assertEmpty ($ result ->getAdminLevels ());
@@ -72,12 +72,12 @@ public function testGeocodeWithLocalhostIPv6(): void
7272 $ provider = new Ipstack ($ this ->getMockedHttpClient (), 'api_key ' );
7373 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('::1 ' ));
7474
75- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
75+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
7676 $ this ->assertCount (1 , $ results );
7777
7878 /** @var Location $result */
7979 $ result = $ results ->first ();
80- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
80+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
8181 $ this ->assertEquals ('localhost ' , $ result ->getLocality ());
8282 $ this ->assertEquals ('localhost ' , $ result ->getCountry ()->getName ());
8383 $ this ->assertEmpty ($ result ->getAdminLevels ());
@@ -88,12 +88,12 @@ public function testGeocodeWithRealIPv4(): void
8888 $ provider = new Ipstack ($ this ->getHttpClient ($ _SERVER ['IPSTACK_API_KEY ' ]), $ _SERVER ['IPSTACK_API_KEY ' ]);
8989 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.200.247.59 ' ));
9090
91- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
91+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
9292 $ this ->assertCount (1 , $ results );
9393
9494 /** @var Location $result */
9595 $ result = $ results ->first ();
96- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
96+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
9797 $ this ->assertEqualsWithDelta (40.724 , $ result ->getCoordinates ()->getLatitude (), 0.01 );
9898 $ this ->assertEqualsWithDelta (-74.059 , $ result ->getCoordinates ()->getLongitude (), 0.01 );
9999 $ this ->assertEquals ('United States ' , $ result ->getCountry ()->getName ());
@@ -107,12 +107,12 @@ public function testGeocodeWithRealIPv4InFrench(): void
107107 $ provider = new Ipstack ($ this ->getHttpClient ($ _SERVER ['IPSTACK_API_KEY ' ]), $ _SERVER ['IPSTACK_API_KEY ' ]);
108108 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('74.200.247.59 ' )->withLocale ('fr ' ));
109109
110- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
110+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
111111 $ this ->assertCount (1 , $ results );
112112
113113 /** @var Location $result */
114114 $ result = $ results ->first ();
115- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
115+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
116116 $ this ->assertEqualsWithDelta (40.724 , $ result ->getCoordinates ()->getLatitude (), 0.01 );
117117 $ this ->assertEqualsWithDelta (-74.059 , $ result ->getCoordinates ()->getLongitude (), 0.01 );
118118 $ this ->assertEquals ('États-Unis ' , $ result ->getCountry ()->getName ());
0 commit comments