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