Skip to content

Commit 2ff7189

Browse files
fbuchlakjbelien
andauthored
style: convert string class names to constants (#1252)
* style: convert string class names to constants * style: fix php-cs-fixer --------- Co-authored-by: Jonathan Beliën <[email protected]>
1 parent 41ebf4b commit 2ff7189

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/PhotonTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public function testGeocodeQuery(): void
5858
$provider = Photon::withKomootServer($this->getHttpClient());
5959
$results = $provider->geocodeQuery(GeocodeQuery::create('10 avenue Gambetta, Paris, France'));
6060

61-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
61+
$this->assertInstanceOf(AddressCollection::class, $results);
6262
$this->assertCount(1, $results);
6363

6464
/** @var PhotonAddress $result */
6565
$result = $results->first();
66-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
66+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
6767
$this->assertEqualsWithDelta(48.8631927, $result->getCoordinates()->getLatitude(), 0.00001);
6868
$this->assertEqualsWithDelta(2.3890894, $result->getCoordinates()->getLongitude(), 0.00001);
6969
$this->assertEquals('10', $result->getStreetNumber());
@@ -87,7 +87,7 @@ public function testGeocodeQueryWithNamedResult(): void
8787
$provider = Photon::withKomootServer($this->getHttpClient());
8888
$results = $provider->geocodeQuery(GeocodeQuery::create('Sherlock Holmes Museum, 221B Baker St, London, England'));
8989

90-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
90+
$this->assertInstanceOf(AddressCollection::class, $results);
9191
$this->assertCount(1, $results);
9292

9393
/** @var PhotonAddress $result */
@@ -161,12 +161,12 @@ public function testReverseQuery(): void
161161
$reverseQuery = ReverseQuery::fromCoordinates(52, 10)->withLimit(1);
162162
$results = $provider->reverseQuery($reverseQuery);
163163

164-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
164+
$this->assertInstanceOf(AddressCollection::class, $results);
165165
$this->assertCount(1, $results);
166166

167167
/** @var PhotonAddress $result */
168168
$result = $results->first();
169-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
169+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
170170
$this->assertEqualsWithDelta(51.9982968, $result->getCoordinates()->getLatitude(), 0.00001);
171171
$this->assertEqualsWithDelta(9.998645, $result->getCoordinates()->getLongitude(), 0.00001);
172172
$this->assertEquals('31195', $result->getPostalCode());

0 commit comments

Comments
 (0)