Skip to content

Commit 90f81f0

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 <jbelien@users.noreply.github.com>
1 parent 281edaa commit 90f81f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/TomTomTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public function testGeocodeWithRealAddress(): void
4545
$provider = new TomTom($this->getHttpClient($_SERVER['TOMTOM_MAP_KEY']), $_SERVER['TOMTOM_MAP_KEY']);
4646
$results = $provider->geocodeQuery(GeocodeQuery::create('Tagensvej 47, 2200 København N')->withLocale('en-GB'));
4747

48-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
48+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
4949
$this->assertCount(1, $results);
5050

5151
/** @var Location $result */
5252
$result = $results->first();
53-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
53+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
5454
$this->assertEqualsWithDelta(55.70, $result->getCoordinates()->getLatitude(), 0.001);
5555
$this->assertEqualsWithDelta(12.5529, $result->getCoordinates()->getLongitude(), 0.001);
5656
$this->assertNull($result->getBounds());
@@ -69,12 +69,12 @@ public function testGeocodeWithRealAddressWithFrenchLocale(): void
6969
$provider = new TomTom($this->getHttpClient($_SERVER['TOMTOM_MAP_KEY']), $_SERVER['TOMTOM_MAP_KEY']);
7070
$results = $provider->geocodeQuery(GeocodeQuery::create('Tagensvej 47, 2200 København N')->withLocale('fr-FR'));
7171

72-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
72+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
7373
$this->assertCount(1, $results);
7474

7575
/** @var Location $result */
7676
$result = $results->first();
77-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
77+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
7878
}
7979

8080
public function testGeocodeWithLocalhostIPv4(): void
@@ -159,12 +159,12 @@ public function testReverseWithRealCoordinates(): void
159159
$provider = new TomTom($this->getHttpClient($_SERVER['TOMTOM_MAP_KEY']), $_SERVER['TOMTOM_MAP_KEY']);
160160
$results = $provider->reverseQuery(ReverseQuery::fromCoordinates(48.86321648955345, 2.3887719959020615));
161161

162-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
162+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
163163
$this->assertCount(1, $results);
164164

165165
/** @var Location $result */
166166
$result = $results->first();
167-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
167+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
168168
$this->assertEqualsWithDelta(48.86323, $result->getCoordinates()->getLatitude(), 0.001);
169169
$this->assertEqualsWithDelta(2.38877, $result->getCoordinates()->getLongitude(), 0.001);
170170
$this->assertNull($result->getBounds());
@@ -187,12 +187,12 @@ public function testGeocodeWithRealCoordinates(): void
187187
$provider = new TomTom($this->getHttpClient($_SERVER['TOMTOM_MAP_KEY']), $_SERVER['TOMTOM_MAP_KEY']);
188188
$results = $provider->reverseQuery(ReverseQuery::fromCoordinates(56.5231, 10.0659));
189189

190-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
190+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
191191
$this->assertCount(1, $results);
192192

193193
/** @var Location $result */
194194
$result = $results->first();
195-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
195+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
196196
$this->assertEqualsWithDelta(56.52435, $result->getCoordinates()->getLatitude(), 0.001);
197197
$this->assertEqualsWithDelta(10.06744, $result->getCoordinates()->getLongitude(), 0.001);
198198
$this->assertNull($result->getBounds());

0 commit comments

Comments
 (0)