com php-src: Fixed test: ext/intl/tests/dateformat_calendars .phpt
| From: | Dmitry Stogov | Date: | Mon, 30 Mar 2015 18:48:54 +0000 |
| Subject: | com php-src: Fixed test: ext/intl/tests/dateformat_calendars .phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85994@lists.php.net to get a copy of this message | ||
Commit: 2afca9f179fca2e127d5da3e1cc6cf50ff47339c
Author: Dmitry Stogov <dmitry@zend.com> Mon, 30 Mar 2015 21:48:54 +0300
Parents: 1018f462d8bb0a12b238d9d11c141038beaf2a6c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2afca9f179fca2e127d5da3e1cc6cf50ff47339c
Log:
Fixed test
Changed paths:
M ext/intl/tests/dateformat_calendars.phpt
Diff:
diff --git a/ext/intl/tests/dateformat_calendars.phpt b/ext/intl/tests/dateformat_calendars.phpt
index 7de6356..13dde0f 100644
--- a/ext/intl/tests/dateformat_calendars.phpt
+++ b/ext/intl/tests/dateformat_calendars.phpt
@@ -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