@@ -68,12 +68,12 @@ public function testLocationResultContainsExpectedFieldsForAnAmericanIp(): void
68
68
$ provider = new MaxMindBinary ($ this ->binaryFile );
69
69
$ results = $ provider ->geocodeQuery (GeocodeQuery::create ('24.24.24.24 ' ));
70
70
71
- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
71
+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
72
72
$ this ->assertCount (1 , $ results );
73
73
74
74
/** @var Location $result */
75
75
$ result = $ results ->first ();
76
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
76
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
77
77
78
78
$ this ->assertEqualsWithDelta (43.089200000000005 , $ result ->getCoordinates ()->getLatitude (), 0.001 );
79
79
$ this ->assertEqualsWithDelta (-76.025000000000006 , $ result ->getCoordinates ()->getLongitude (), 0.001 );
@@ -96,12 +96,12 @@ public function testLocationResultContainsExpectedFieldsForASpanishIp(): void
96
96
$ provider = new MaxMindBinary ($ this ->binaryFile );
97
97
$ results = $ provider ->geocodeQuery (GeocodeQuery::create ('80.24.24.24 ' ));
98
98
99
- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
99
+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
100
100
$ this ->assertCount (1 , $ results );
101
101
102
102
/** @var Location $result */
103
103
$ result = $ results ->first ();
104
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
104
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
105
105
106
106
$ this ->assertEqualsWithDelta (41.543299999999988 , $ result ->getCoordinates ()->getLatitude (), 0.001 );
107
107
$ this ->assertEqualsWithDelta (2.1093999999999937 , $ result ->getCoordinates ()->getLongitude (), 0.001 );
@@ -127,12 +127,12 @@ public function testFindLocationByIp(string $ip, ?string $expectedCity, ?string
127
127
$ provider = new MaxMindBinary ($ this ->binaryFile );
128
128
$ results = $ provider ->geocodeQuery (GeocodeQuery::create ($ ip ));
129
129
130
- $ this ->assertInstanceOf (' Geocoder\Model\AddressCollection ' , $ results );
130
+ $ this ->assertInstanceOf (\ Geocoder \Model \AddressCollection::class , $ results );
131
131
$ this ->assertCount (1 , $ results );
132
132
133
133
/** @var Location $result */
134
134
$ result = $ results ->first ();
135
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
135
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
136
136
$ this ->assertEquals ($ expectedCity , $ result ->getLocality ());
137
137
$ this ->assertEquals ($ expectedCountry , $ result ->getCountry ()->getName ());
138
138
}
@@ -144,7 +144,7 @@ public function testShouldReturnResultsAsUtf8Encoded(): void
144
144
145
145
/** @var Location $result */
146
146
$ result = $ results ->first ();
147
- $ this ->assertInstanceOf (' \Geocoder\Model\Address ' , $ result );
147
+ $ this ->assertInstanceOf (\Geocoder \Model \Address::class , $ result );
148
148
$ this ->assertSame ('Châlette-sur-loing ' , $ result ->getLocality ());
149
149
}
150
150
0 commit comments