Adam Harvey
c7bfce9116
Fix version_compare() calls for PHP 5.5.
...
Until PHP 5.5 hits beta, the version number for Git builds is still 5.5.0-dev,
which is less than 5.5.0alpha1 according to version_compare(). This means that
the branches for 5.5 aren't being executed on 5.5 snapshots at present.
2013-01-11 16:02:30 +08:00
Joseph Bielawski
b2ce983596
[Locale] Fix failing StubIntlDateFormatter
tests in PHP 5.5
2013-01-04 14:10:03 +01:00
Martin Hasoň
5fe58bffc5
[Locale] fixed tests
2012-12-05 14:13:56 +01:00
Eriksen Costa
a609d55c1f
[Locale] fixed StubIntlDateFormatter to behave like the ext/intl implementation
2012-06-18 01:41:22 -03:00
Francesc Rosàs
4938080422
MethodNotImplementedException -> MethodArgumentValueNotImplementedException
2012-06-04 19:15:56 +02:00
Eriksen Costa
fab1b5ac8f
[Locale] changed inequality operator to strict checking and updated some assertions
2012-04-16 23:32:33 -03:00
Eriksen Costa
09d30d3d1e
[Locale] refactored some code
2012-04-16 23:32:33 -03:00
Eriksen Costa
0a606642b7
[Locale] updated StubIntlDateFormatter::format() exception message when timestamp argument is an array for PHP >= 5.3.4
2012-04-16 23:32:26 -03:00
Eriksen Costa
e4769d9377
[Locale] reordered test methods
2012-04-15 14:57:23 -03:00
Eriksen Costa
312a5a4201
[Locale] fixed StubIntlDateFormatter::format() to set the right error for PHP >= 5.3.4 and to behave like the intl when formatting successfully
2012-04-15 14:56:41 -03:00
stealth35
bb61e09340
[Locale] use the correct way for Intl error
2012-04-14 17:11:17 -03:00
Eriksen Costa
31dde144ff
[Locale] updated StubIntlDateFormatter::format() behavior for PHP >= 5.3.4
2012-04-08 19:21:28 -03:00
Eriksen Costa
beb4fc0899
[WIP][Locale] StubIntlDateFormatter::parse was throwing exception instead of returning Boolean false like intl implementation
2012-02-14 01:35:14 -02:00
stealth35
43b55efd04
[Locale] Fix #2179 StubIntlDateFormatter support yy format
...
Fix #2179 Year limit is 2031 like IntlDateFormatter
2011-09-16 13:12:22 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Joseph Bielawski
d65a56e13b
[Locale] Prevent failing test when used with PHP 5.3.3+
2011-05-24 16:08:09 -07:00
Bernhard Schussek
829aa4dc0b
[Locale] Improved error reporting and added stubs for intl_is_failure(), intl_get_error_code() and intl_get_error_message()
2011-05-19 01:15:37 +02:00
George Giannoulopoulos
81e1d4f11d
Refactoring, replace is_null() wuth null ===
2011-04-13 13:56:15 +02:00
Pascal Borreli
8a82aee56f
[Locale][Windows] Fixing tests for old ICU version (default in php.net packages)
2011-04-02 13:19:30 +00:00
Eriksen Costa
9c6ccd8290
[Locale] replaced symfony-project.org by symfony.com
2011-03-13 21:22:11 -03:00
Eriksen Costa
b5622f3c77
[Locale] fixed typo
2011-03-08 17:00:32 -03:00
Eriksen Costa
0be12d7a89
[Locale] skip test if intl extension is not loaded
2011-03-07 03:19:47 -03:00
Eriksen Costa
d8e35a2f5c
[Locale] added tests to document behavior not implemented by StubIntlDateFormatter::parse()
2011-03-07 03:07:18 -03:00
Eriksen Costa
0a577e6fce
[Locale] added more tests to time zone parsing with AM/PM markers
2011-03-07 03:07:17 -03:00
Eriksen Costa
d2df09f744
[Locale] refactored time zone support
2011-03-07 03:07:12 -03:00
Eriksen Costa
4cc5b6f2d0
[Locale] throw exception if value different than null is provided (behavior not implemented in the stub)
2011-03-01 02:08:13 -03:00
Igor Wiedler
fd0cc37c71
[Locale] handle escaped (enquoted) strings when parsing
2011-02-28 18:22:22 +01:00
Igor Wiedler
a5f8411eff
[Locale] minor cosmetical tweaks to the pre-escaped regExp
2011-02-28 13:54:38 +01:00
Igor Wiedler
7e577acede
[Locale] do not use unimplemented chars in examples
2011-02-28 09:46:30 -03:00
Igor Wiedler
20acdac57d
[Locale] remove support for era (BC|AD)
...
parsing it is a pain, nobody uses it, BC only works on 64 bit.
2011-02-28 09:46:30 -03:00
Igor Wiedler
195b2ebdde
[Locale] handle IntlDateFormatter::parse with non-integer timestamp
2011-02-28 09:46:30 -03:00
Igor Wiedler
3f42be3fe9
[Locale] use assertSame in parse tests
2011-02-28 09:46:29 -03:00
Eriksen Costa
b7e9b35ca9
[Locale] added parsing of dates with regExp metachars
2011-02-28 09:44:14 -03:00
Eriksen Costa
0449889513
[Locale] added timezone parsing implementation
2011-02-28 01:19:19 -03:00
Eriksen Costa
dadd896915
[Locale] added implementation for minutes and seconds
2011-02-27 18:21:35 -03:00
Eriksen Costa
c1c0c3c42e
[Locale] added parsing for hours (12 and 24 hours)
2011-02-27 15:22:25 -03:00
Eriksen Costa
ed85345312
[Locale] added parsing implementation for year, month and day
2011-02-27 02:22:07 -03:00
Igor Wiedler
bcca989c41
[Locale] refactor and simplify some parts of StubIntlDateFormatter
2011-02-23 19:09:48 +01:00
Igor Wiedler
71c99422f3
[Locale] convenience createStubFormatter method for StubIntlDateFormatter tests
2011-02-23 14:20:47 +01:00
Igor Wiedler
ee5bc36c55
[Locale] add docblocks to StubIntlDateFormatter and adjust some things to be more like StubNumberFormatter
2011-02-23 14:20:47 +01:00
Igor Wiedler
31313f183a
[Locale] use is64Bit helper for StubIntlDateFormatterTest
2011-02-23 14:20:46 +01:00
Igor Wiedler
3cc60f7cb4
[Locale] throw NotImplementedException on unimplemented chars
2011-02-23 14:20:45 +01:00
Igor Wiedler
d555049342
[Locale] only test BC era if on 64bit
2011-02-23 14:20:45 +01:00
Igor Wiedler
4fb79b715a
[Locale] split another StubIntlDateFormatter test into two
2011-02-23 14:20:45 +01:00
Igor Wiedler
53839f9235
[Locale] refactor tests, make use of specialized exception
2011-02-23 14:20:45 +01:00
Igor Wiedler
77258223f1
[Locale] re-order StubIntlDateFormatter methods, rename timezoneId to timeZoneId, add setLenient method
2011-02-23 14:20:44 +01:00
Igor Wiedler
1191ab4b56
[Locale] add remaining IntlDateFormatter methods with tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
69b38faff7
[Locale] refactoring and some more tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
e95df5d2a7
[Locale] fix failing test case
2011-02-23 14:20:44 +01:00
Igor Wiedler
8dab760160
[Locale] use eriksens intl test helpers
2011-02-23 14:20:43 +01:00