Skip to content

Commit bf5e67e

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 416decd commit bf5e67e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/IpInfoTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ public function testGeocodeWithLocalhost(string $localhostIp): void
5555
$provider = new IpInfo($this->getMockedHttpClient());
5656
$results = $provider->geocodeQuery(GeocodeQuery::create($localhostIp));
5757

58-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
58+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
5959
$this->assertCount(1, $results);
6060

6161
/** @var Location $result */
6262
$result = $results->first();
63-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
63+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
6464
$this->assertNull($result->getCoordinates());
6565

6666
$this->assertNull($result->getPostalCode());
@@ -93,12 +93,12 @@ public function testGeocodeWithRealIPv4(): void
9393
$provider = new IpInfo($this->getHttpClient());
9494
$results = $provider->geocodeQuery(GeocodeQuery::create('74.125.45.100'));
9595

96-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
96+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
9797
$this->assertCount(1, $results);
9898

9999
/** @var Location $result */
100100
$result = $results->first();
101-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
101+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
102102
$this->assertEqualsWithDelta(36.154, $result->getCoordinates()->getLatitude(), 0.001);
103103
$this->assertEqualsWithDelta(-95.9928, $result->getCoordinates()->getLongitude(), 0.001);
104104
$this->assertEquals(74102, $result->getPostalCode());
@@ -115,12 +115,12 @@ public function testGeocodeWithRealIPv6(): void
115115
$provider = new IpInfo($this->getHttpClient());
116116
$results = $provider->geocodeQuery(GeocodeQuery::create('2601:9:7680:363:75df:f491:6f85:352f'));
117117

118-
$this->assertInstanceOf('Geocoder\Model\AddressCollection', $results);
118+
$this->assertInstanceOf(\Geocoder\Model\AddressCollection::class, $results);
119119
$this->assertCount(1, $results);
120120

121121
/** @var Location $result */
122122
$result = $results->first();
123-
$this->assertInstanceOf('\Geocoder\Model\Address', $result);
123+
$this->assertInstanceOf(\Geocoder\Model\Address::class, $result);
124124
$this->assertEqualsWithDelta(39.934, $result->getCoordinates()->getLatitude(), 0.001);
125125
$this->assertEqualsWithDelta(-74.891, $result->getCoordinates()->getLongitude(), 0.001);
126126
$this->assertEquals('08054', $result->getPostalCode());

0 commit comments

Comments
 (0)