1212namespace Symfony \Component \Intl \Tests \Collator ;
1313
1414use Symfony \Component \Intl \Collator \Collator ;
15+ use Symfony \Component \Intl \Exception \MethodNotImplementedException ;
1516use Symfony \Component \Intl \Globals \IntlGlobals ;
1617
1718class CollatorTest extends AbstractCollatorTest
@@ -57,19 +58,19 @@ public function testGetLocale()
5758 public function testConstructWithoutLocale ()
5859 {
5960 $ collator = $ this ->getCollator (null );
60- $ this ->assertInstanceOf (' \Symfony\Component\Intl\ Collator\Collator ' , $ collator );
61+ $ this ->assertInstanceOf (Collator::class , $ collator );
6162 }
6263
6364 public function testGetSortKey ()
6465 {
65- $ this ->expectException (' Symfony\Component\Intl\Exception\ MethodNotImplementedException' );
66+ $ this ->expectException (MethodNotImplementedException::class );
6667 $ collator = $ this ->getCollator ('en ' );
6768 $ collator ->getSortKey ('Hello ' );
6869 }
6970
7071 public function testGetStrength ()
7172 {
72- $ this ->expectException (' Symfony\Component\Intl\Exception\ MethodNotImplementedException' );
73+ $ this ->expectException (MethodNotImplementedException::class );
7374 $ collator = $ this ->getCollator ('en ' );
7475 $ collator ->getStrength ();
7576 }
@@ -92,7 +93,7 @@ public function testStaticCreate()
9293 {
9394 $ collator = $ this ->getCollator ('en ' );
9495 $ collator = $ collator ::create ('en ' );
95- $ this ->assertInstanceOf (' \Symfony\Component\Intl\ Collator\Collator ' , $ collator );
96+ $ this ->assertInstanceOf (Collator::class , $ collator );
9697 }
9798
9899 protected function getCollator (?string $ locale ): Collator
0 commit comments