Skip to content

Commit

Permalink
y
Browse files Browse the repository at this point in the history
x
  • Loading branch information
dg committed Aug 6, 2024
1 parent 4f4b066 commit acb06ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/filters/localDate.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit acb06ad

Please sign in to comment.