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