@@ -36,7 +36,7 @@ public function testConstructorWithoutCalendar()
3636
3737 public function testConstructorWithUnsupportedLocale ()
3838 {
39- $ this ->expectException (' Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException ' );
39+ $ this ->expectException (\ Symfony \Component \Intl \Exception \MethodArgumentValueNotImplementedException::class );
4040 $ this ->getDateFormatter ('pt_BR ' , IntlDateFormatter::MEDIUM , IntlDateFormatter::SHORT );
4141 }
4242
@@ -66,23 +66,23 @@ public function testFormatWithUnsupportedTimestampArgument()
6666 try {
6767 $ formatter ->format ($ localtime );
6868 } catch (\Exception $ e ) {
69- $ this ->assertInstanceOf (' Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException ' , $ e );
69+ $ this ->assertInstanceOf (\ Symfony \Component \Intl \Exception \MethodArgumentValueNotImplementedException::class , $ e );
7070
7171 $ this ->assertStringEndsWith ('Only integer Unix timestamps and DateTime objects are supported. Please install the "intl" extension for full localization capabilities. ' , $ e ->getMessage ());
7272 }
7373 }
7474
7575 public function testFormatWithUnimplementedChars ()
7676 {
77- $ this ->expectException (' Symfony\Component\Intl\Exception\NotImplementedException ' );
77+ $ this ->expectException (\ Symfony \Component \Intl \Exception \NotImplementedException::class );
7878 $ pattern = 'Y ' ;
7979 $ formatter = $ this ->getDateFormatter ('en ' , IntlDateFormatter::MEDIUM , IntlDateFormatter::SHORT , 'UTC ' , IntlDateFormatter::GREGORIAN , $ pattern );
8080 $ formatter ->format (0 );
8181 }
8282
8383 public function testFormatWithNonIntegerTimestamp ()
8484 {
85- $ this ->expectException (' Symfony\Component\Intl\Exception\NotImplementedException ' );
85+ $ this ->expectException (\ Symfony \Component \Intl \Exception \NotImplementedException::class );
8686 $ formatter = $ this ->getDefaultDateFormatter ();
8787 $ formatter ->format ([]);
8888 }
@@ -107,42 +107,42 @@ public function testIsLenient()
107107
108108 public function testLocaltime ()
109109 {
110- $ this ->expectException (' Symfony\Component\Intl\Exception\MethodNotImplementedException ' );
110+ $ this ->expectException (\ Symfony \Component \Intl \Exception \MethodNotImplementedException::class );
111111 $ formatter = $ this ->getDefaultDateFormatter ();
112112 $ formatter ->localtime ('Wednesday, December 31, 1969 4:00:00 PM PT ' );
113113 }
114114
115115 public function testParseWithNotNullPositionValue ()
116116 {
117- $ this ->expectException (' Symfony\Component\Intl\Exception\MethodArgumentNotImplementedException ' );
117+ $ this ->expectException (\ Symfony \Component \Intl \Exception \MethodArgumentNotImplementedException::class );
118118 $ position = 0 ;
119119 $ formatter = $ this ->getDefaultDateFormatter ('y ' );
120120 $ this ->assertSame (0 , $ formatter ->parse ('1970 ' , $ position ));
121121 }
122122
123123 public function testSetCalendar ()
124124 {
125- $ this ->expectException (' Symfony\Component\Intl\Exception\MethodNotImplementedException ' );
125+ $ this ->expectException (\ Symfony \Component \Intl \Exception \MethodNotImplementedException::class );
126126 $ formatter = $ this ->getDefaultDateFormatter ();
127127 $ formatter ->setCalendar (IntlDateFormatter::GREGORIAN );
128128 }
129129
130130 public function testSetLenient ()
131131 {
132- $ this ->expectException (' Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException ' );
132+ $ this ->expectException (\ Symfony \Component \Intl \Exception \MethodArgumentValueNotImplementedException::class );
133133 $ formatter = $ this ->getDefaultDateFormatter ();
134134 $ formatter ->setLenient (true );
135135 }
136136
137137 public function testFormatWithGmtTimeZoneAndMinutesOffset ()
138138 {
139- $ this ->expectException (' Symfony\Component\Intl\Exception\NotImplementedException ' );
139+ $ this ->expectException (\ Symfony \Component \Intl \Exception \NotImplementedException::class );
140140 parent ::testFormatWithGmtTimeZoneAndMinutesOffset ();
141141 }
142142
143143 public function testFormatWithNonStandardTimezone ()
144144 {
145- $ this ->expectException (' Symfony\Component\Intl\Exception\NotImplementedException ' );
145+ $ this ->expectException (\ Symfony \Component \Intl \Exception \NotImplementedException::class );
146146 parent ::testFormatWithNonStandardTimezone ();
147147 }
148148
0 commit comments