summaryrefslogtreecommitdiff
path: root/ext/intl/tests/dateformat_bug65683.phpt
blob: 4d6cac9afa830875a272d896cb52fef327a46e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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";

?>
--EXPECTF--
string(%s) "Monday, March %d, 2017"