bug72719.phpt 697 B

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