dateformat_bug65683.phpt 448 B

12345678910111213141516
  1. --TEST--
  2. Bug #65683 IntlDateFormatter accepts DateTimeImmutable
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
  6. --FILE--
  7. <?php
  8. $formatter = new IntlDateFormatter('en-US', IntlDateFormatter::FULL, IntlDateFormatter::NONE, new DateTimeZone("UTC"));
  9. var_dump($formatter->format(new DateTimeImmutable('2017-03-27 00:00:00 UTC'))) . "\n";
  10. ?>
  11. ==DONE==
  12. --EXPECTF--
  13. string(%s) "Monday, March %d, 2017"
  14. ==DONE==