Skip to content

Commit 9c3aa3d

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 496ec4f commit 9c3aa3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/GoogleMapsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ public function testReverseWithSubLocalityLevels(): void
528528
/** @var GoogleAddress $result */
529529
$result = $results->first();
530530
$this->assertInstanceOf(Address::class, $result);
531-
$this->assertInstanceOf('\Geocoder\Model\AdminLevelCollection', $result->getSubLocalityLevels());
531+
$this->assertInstanceOf(\Geocoder\Model\AdminLevelCollection::class, $result->getSubLocalityLevels());
532532
$this->assertEquals('Iijima', $result->getSubLocalityLevels()->get(2)->getName());
533533
$this->assertEquals(false, $result->isPartialMatch());
534534
}
@@ -584,7 +584,7 @@ public function testGeocodeDuplicateSubLocalityLevel(): void
584584
$this->assertCount(2, $result->getAdminLevels());
585585
$this->assertEquals('Région Wallonne', $result->getAdminLevels()->get(1)->getName());
586586
$this->assertEquals('Hainaut', $result->getAdminLevels()->get(2)->getName());
587-
$this->assertInstanceOf('\Geocoder\Model\AdminLevelCollection', $result->getSubLocalityLevels());
587+
$this->assertInstanceOf(\Geocoder\Model\AdminLevelCollection::class, $result->getSubLocalityLevels());
588588
$this->assertEquals(1, $result->getSubLocalityLevels()->get(1)->getLevel());
589589
$this->assertEquals('Wayaux / Les Bons Villers', $result->getSubLocalityLevels()->get(1)->getName());
590590
$this->assertEquals('Wayaux / Les Bons Villers', $result->getSubLocalityLevels()->get(1)->getCode());

0 commit comments

Comments
 (0)