1--TEST--
2MessageFormatter::format() invalid date/time argument
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12
13$fmt = <<<EOD
14{foo,date}
15EOD;
16
17$mf = new MessageFormatter('en_US', $fmt);
18var_dump($mf->format(array("foo" => new stdclass())));
19--EXPECTF--
20Warning: MessageFormatter::format(): msgfmt_format: invalid object type for date/time (only IntlCalendar and DateTimeInterface permitted) in %s on line %d
21
22Warning: MessageFormatter::format(): The argument for key 'foo' cannot be used as a date or time in %s on line %d
23bool(false)
24