diff --git a/tests/filters/localDate.phpt b/tests/filters/localDate.phpt index 288b1f23f..ed9e8f0d0 100644 --- a/tests/filters/localDate.phpt +++ b/tests/filters/localDate.phpt @@ -67,11 +67,11 @@ test('full/long/medium/short', function () { Assert::same('12:13', $filters->localDate('12:13:14', time: 'short')); Assert::same('12:13:14', $filters->localDate('12:13:14', time: 'medium')); Assert::same('12:13:14 PDT', $filters->localDate('12:13:14', time: 'long')); - Assert::same('12:13:14, severoamerický pacifický letní čas', $filters->localDate('12:13:14', time: 'full')); + Assert::match('12:13:14%a%', $filters->localDate('12:13:14', time: 'full')); // combined - Assert::same('05.05.78 12:13', $filters->localDate('1978-05-05 12:13:14', date: 'short', time: 'short')); - Assert::same("5.\u{a0}května 1978 v 12:13", $filters->localDate('1978-05-05 12:13:14', date: 'long', time: 'short')); + $filters->locale = 'en_US'; + Assert::same('5/5/78, 12:13 PM', $filters->localDate('1978-05-05 12:13:14', date: 'short', time: 'short')); }); test('relative full/long/medium/short', function () {