File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public function testCastDateFormatter()
234234 $ var = new \IntlDateFormatter ('en ' , \IntlDateFormatter::TRADITIONAL , \IntlDateFormatter::TRADITIONAL );
235235
236236 $ expectedLocale = $ var ->getLocale ();
237- $ expectedPattern = $ var ->getPattern ();
237+ $ expectedPattern = $ this -> normalizeNarrowNoBreakSpaceCharacter ( $ var ->getPattern () );
238238 $ expectedCalendar = $ var ->getCalendar ();
239239 $ expectedTimeZoneId = $ var ->getTimeZoneId ();
240240 $ expectedTimeType = $ var ->getTimeType ();
@@ -294,4 +294,9 @@ public function testCastDateFormatter()
294294EOTXT ;
295295 $ this ->assertDumpEquals ($ expected , $ var );
296296 }
297+
298+ private function normalizeNarrowNoBreakSpaceCharacter (string $ input ): string
299+ {
300+ return str_replace ("\u{202F}" , '\\u{202F} ' , $ input );
301+ }
297302}
You can’t perform that action at this time.
0 commit comments