@@ -68,12 +68,12 @@ public function testLocationResultContainsExpectedFieldsForAnAmericanIp(): void
6868 $ provider = new MaxMindBinary ($ this ->binaryFile );
6969 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('24.24.24.24 ' ));
7070
71- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
71+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
7272 $ this ->assertCount (1 , $ results );
7373
7474 /** @var Location $result */
7575 $ result = $ results ->first ();
76- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
76+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
7777
7878 $ this ->assertEqualsWithDelta (43.089200000000005 , $ result ->getCoordinates ()->getLatitude (), 0.001 );
7979 $ this ->assertEqualsWithDelta (-76.025000000000006 , $ result ->getCoordinates ()->getLongitude (), 0.001 );
@@ -96,12 +96,12 @@ public function testLocationResultContainsExpectedFieldsForASpanishIp(): void
9696 $ provider = new MaxMindBinary ($ this ->binaryFile );
9797 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('80.24.24.24 ' ));
9898
99- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
99+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
100100 $ this ->assertCount (1 , $ results );
101101
102102 /** @var Location $result */
103103 $ result = $ results ->first ();
104- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
104+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
105105
106106 $ this ->assertEqualsWithDelta (41.543299999999988 , $ result ->getCoordinates ()->getLatitude (), 0.001 );
107107 $ this ->assertEqualsWithDelta (2.1093999999999937 , $ result ->getCoordinates ()->getLongitude (), 0.001 );
@@ -127,12 +127,12 @@ public function testFindLocationByIp(string $ip, ?string $expectedCity, ?string
127127 $ provider = new MaxMindBinary ($ this ->binaryFile );
128128 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ($ ip ));
129129
130- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
130+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
131131 $ this ->assertCount (1 , $ results );
132132
133133 /** @var Location $result */
134134 $ result = $ results ->first ();
135- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
135+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
136136 $ this ->assertEquals ($ expectedCity , $ result ->getLocality ());
137137 $ this ->assertEquals ($ expectedCountry , $ result ->getCountry ()->getName ());
138138 }
@@ -144,7 +144,7 @@ public function testShouldReturnResultsAsUtf8Encoded(): void
144144
145145 /** @var Location $result */
146146 $ result = $ results ->first ();
147- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
147+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
148148 $ this ->assertSame ('Châlette-sur-loing ' , $ result ->getLocality ());
149149 }
150150
0 commit comments