File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/Symfony/Component/VarDumper/Tests/Caster 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()
234
234
$ var = new \IntlDateFormatter ('en ' , \IntlDateFormatter::TRADITIONAL , \IntlDateFormatter::TRADITIONAL );
235
235
236
236
$ expectedLocale = $ var ->getLocale ();
237
- $ expectedPattern = $ var ->getPattern ();
237
+ $ expectedPattern = $ this -> normalizeNarrowNoBreakSpaceCharacter ( $ var ->getPattern () );
238
238
$ expectedCalendar = $ var ->getCalendar ();
239
239
$ expectedTimeZoneId = $ var ->getTimeZoneId ();
240
240
$ expectedTimeType = $ var ->getTimeType ();
@@ -294,4 +294,9 @@ public function testCastDateFormatter()
294
294
EOTXT ;
295
295
$ this ->assertDumpEquals ($ expected , $ var );
296
296
}
297
+
298
+ private function normalizeNarrowNoBreakSpaceCharacter (string $ input ): string
299
+ {
300
+ return str_replace ("\u{202F}" , '\\u{202F} ' , $ input );
301
+ }
297
302
}
You can’t perform that action at this time.
0 commit comments