xref: /PHP-7.1/ext/date/tests/bug72719.phpt (revision f0519f48)
1--TEST--
2Bug #72719: Relative datetime format ignores weekday on sundays only
3--FILE--
4<?php
5echo (new DateTimeImmutable('Monday next week 13:00'))->format('l'), "\n";
6echo (new DateTimeImmutable('Tuesday next week 14:00'))->format('l'), "\n";
7echo (new DateTimeImmutable('Wednesday next week 14:00'))->format('l'), "\n";
8echo (new DateTimeImmutable('Thursday next week 15:00'))->format('l'), "\n";
9echo (new DateTimeImmutable('Friday next week 16:00'))->format('l'), "\n";
10echo (new DateTimeImmutable('Saturday next week 17:00'))->format('l'), "\n";
11echo (new DateTimeImmutable('Sunday next week 18:00'))->format('l'), "\n";
12?>
13--EXPECT--
14Monday
15Tuesday
16Wednesday
17Thursday
18Friday
19Saturday
20Sunday
21