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
Fabien Potencier
03d22b74ec
fixed CS (mainly method signatures)
2012-07-09 14:43:50 +02:00
Eriksen Costa
28f002d978
[Locale] fixed bug on the parsing of TYPE_INT64 integers in 32 bit and 64 bit environments, caused by PHP bug fix :) ( closes #4718 )
2012-07-08 22:15:42 -03: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
Fabien Potencier
8dc25abe1b
merged branch stealth35/locale_intl_error_name (PR #3959 )
...
Commits
-------
5799d25
Add BOGUS UErrorCode test
6f9c05d
[Locale] Complete Stub with intl_error_name
Discussion
----------
[Locale] Complete StubIntl with the missing intl_error_name
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
2012-04-18 10:38:01 +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
e4cbbf3e8c
[Locale] fixed StubNumberFormatter::format() to behave like the NumberFormatter::parse() regarding to error flagging
2012-04-16 23:32:33 -03:00
Eriksen Costa
f16ff892bb
[Locale] fixed StubNumberFormatter::parse() to behave like the NumberFormatter::parse() regarding to error flagging
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
stealth35
5799d25324
Add BOGUS UErrorCode test
2012-04-16 13:33:13 +02:00
stealth35
6f9c05d4f9
[Locale] Complete Stub with intl_error_name
2012-04-16 13:30:41 +02: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
3759ff0777
[Locale] StubNumberFormatter allow to parse 64bit number in 64bit mode
2011-12-11 17:45:39 +01:00
Miquel Rodríguez Telep / Michael Rodríguez-Torrent
89cd64a4a5
Set error code when number cannot be parsed. Fixes #2389
2011-10-30 22:02:16 +00: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
Pascal Borreli
4c098c2dbc
[Locale] Silenting error to test return value
2011-05-07 16:59:10 +00:00
Pascal Borreli
0839a2f6c9
[Locale] Added symfony 1 test cases
2011-05-07 16:59:07 +00: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
Fabien Potencier
c5c8e57754
[Locale] updated the tests so that we can be green again (previous version always add 2 skipped tests)
2011-03-17 12:20:37 +01: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
Igor Wiedler
c22a43860b
[Locale] add missing StubCollator methods, with tests
2011-03-02 17:13:24 +01:00
Eriksen Costa
18e16860ae
[Locale] fixed PHP notice
2011-03-01 02:24:19 -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