mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
17 lines
448 B
PHP
17 lines
448 B
PHP
--TEST--
|
|
Bug #65683 IntlDateFormatter accepts DateTimeImmutable
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$formatter = new IntlDateFormatter('en-US', IntlDateFormatter::FULL, IntlDateFormatter::NONE, new DateTimeZone("UTC"));
|
|
var_dump($formatter->format(new DateTimeImmutable('2017-03-27 00:00:00 UTC'))) . "\n";
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECTF--
|
|
string(%s) "Monday, March %d, 2017"
|
|
==DONE==
|