Skip to content

Commit b142c1d

Browse files
committed
style: [photon] use class name resolution in test
1 parent 7cb656c commit b142c1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Provider/Photon/Tests/PhotonTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
namespace Geocoder\Provider\Photon\Tests;
1414

1515
use Geocoder\IntegrationTest\BaseTestCase;
16+
use Geocoder\Model\AddressCollection;
1617
use Geocoder\Provider\Photon\Model\PhotonAddress;
1718
use Geocoder\Provider\Photon\Photon;
1819
use Geocoder\Query\GeocodeQuery;
@@ -141,15 +142,15 @@ public function testGeocodeQueryWithLatLon(): void
141142

142143
$query = GeocodeQuery::create('Paris')->withLimit(1);
143144
$results = $provider->geocodeQuery($query);
144-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
145+
$this->assertInstanceOf(AddressCollection::class, $results);
145146
$this->assertCount(1, $results);
146147
$this->assertEquals('France', $results->first()->getCountry());
147148

148149
$query = $query
149150
->withData('lat', 33.661426)
150151
->withData('lon', -95.556321);
151152
$results = $provider->geocodeQuery($query);
152-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
153+
$this->assertInstanceOf(AddressCollection::class, $results);
153154
$this->assertCount(1, $results);
154155
$this->assertEquals('United States', $results->first()->getCountry());
155156
}

0 commit comments

Comments
 (0)