Skip to content

Commit 08bfe0a

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 d515539 commit 08bfe0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/IP2LocationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ public function testGeocodeWithRealIPv4(): void
7676
$provider = new IP2Location($this->getHttpClient($_SERVER['IP2LOCATION_API_KEY']), $_SERVER['IP2LOCATION_API_KEY']);
7777
$results = $provider->geocodeQuery(GeocodeQuery::create('74.125.45.100'));
7878

79-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
79+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
8080
$this->assertCount(1, $results);
8181

8282
/** @var Location $result */
8383
$result = $results->first();
84-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
84+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
8585
$this->assertEqualsWithDelta(36.154, $result->getCoordinates()->getLatitude(), 0.001);
8686
$this->assertEqualsWithDelta(-95.9928, $result->getCoordinates()->getLongitude(), 0.001);
8787
$this->assertEquals(74101, $result->getPostalCode());
@@ -101,12 +101,12 @@ public function testGeocodeWithRealIPv6(): void
101101
$provider = new IP2Location($this->getHttpClient($_SERVER['IP2LOCATION_API_KEY']), $_SERVER['IP2LOCATION_API_KEY']);
102102
$results = $provider->geocodeQuery(GeocodeQuery::create('::ffff:74.125.45.100'));
103103

104-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
104+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
105105
$this->assertCount(1, $results);
106106

107107
/** @var Location $result */
108108
$result = $results->first();
109-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
109+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
110110
$this->assertEqualsWithDelta(36.154, $result->getCoordinates()->getLatitude(), 0.001);
111111
$this->assertEqualsWithDelta(-95.9928, $result->getCoordinates()->getLongitude(), 0.001);
112112
$this->assertEquals(74101, $result->getPostalCode());

0 commit comments

Comments
 (0)