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