File tree 1 file changed +3
-2
lines changed
src/Provider/Photon/Tests
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
namespace Geocoder \Provider \Photon \Tests ;
14
14
15
15
use Geocoder \IntegrationTest \BaseTestCase ;
16
+ use Geocoder \Model \AddressCollection ;
16
17
use Geocoder \Provider \Photon \Model \PhotonAddress ;
17
18
use Geocoder \Provider \Photon \Photon ;
18
19
use Geocoder \Query \GeocodeQuery ;
@@ -141,15 +142,15 @@ public function testGeocodeQueryWithLatLon(): void
141
142
142
143
$ query = GeocodeQuery::create ('Paris ' )->withLimit (1 );
143
144
$ results = $ provider ->geocodeQuery ($ query );
144
- $ this ->assertInstanceOf (' Geocoder\Model\ AddressCollection' , $ results );
145
+ $ this ->assertInstanceOf (AddressCollection::class , $ results );
145
146
$ this ->assertCount (1 , $ results );
146
147
$ this ->assertEquals ('France ' , $ results ->first ()->getCountry ());
147
148
148
149
$ query = $ query
149
150
->withData ('lat ' , 33.661426 )
150
151
->withData ('lon ' , -95.556321 );
151
152
$ results = $ provider ->geocodeQuery ($ query );
152
- $ this ->assertInstanceOf (' Geocoder\Model\ AddressCollection' , $ results );
153
+ $ this ->assertInstanceOf (AddressCollection::class , $ results );
153
154
$ this ->assertCount (1 , $ results );
154
155
$ this ->assertEquals ('United States ' , $ results ->first ()->getCountry ());
155
156
}
You can’t perform that action at this time.
0 commit comments