]> granicus.if.org Git - php/commitdiff
Fixed test
authorDmitry Stogov <dmitry@zend.com>
Mon, 30 Mar 2015 18:48:54 +0000 (21:48 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 30 Mar 2015 18:48:54 +0000 (21:48 +0300)
ext/intl/tests/dateformat_calendars.phpt

index 7de6356455e9ad937be9b29fe35b10882e30a989..13dde0f370417dcb5aa2f53e6d4f151bc0031608 100644 (file)
@@ -41,5 +41,8 @@ string(44) "Sunday, January 1, 2012 5:12:00 AM GMT+05:12"
 string(44) "Sunday, January 1, 2012 5:12:00 AM GMT+05:12"
 string(42) "Sunday, Tevet 6, 5772 5:12:00 AM GMT+05:12"
 
-Warning: IntlDateFormatter::__construct(): datefmt_create: invalid value for calendar type; it must be one of IntlDateFormatter::TRADITIONAL (locale's default calendar) or IntlDateFormatter::GREGORIAN. Alternatively, it can be an IntlCalendar object in %s on line %d
-==DONE==
+Fatal error: Uncaught exception 'IntlException' with message 'IntlDateFormatter::__construct(): datefmt_create: invalid value for calendar type; it must be one of IntlDateFormatter::TRADITIONAL (locale's default calendar) or IntlDateFormatter::GREGORIAN. Alternatively, it can be an IntlCalendar object' in %sdateformat_calendars.php:%d
+Stack trace:
+#0 %sdateformat_calendars.php(%d): IntlDateFormatter->__construct('en_US@calendar=...', 0, 0, 'GMT+05:12', -1)
+#1 {main}
+  thrown in %sdateformat_calendars.php on line %d