source: src/router/php7/ext/date/tests/bug72719.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 697 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.