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
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
Manuel Kiessling
a1317c3437
[Locale][Testing] Fixed breaking tests if 'intl' extension is not installed ( #3139 )
...
Symfony\Tests\Component\Locale\LocaleTest->testGetDisplayCountriesReturnsFullListForSubLocale()
fails with a fatal error if the PHP extension 'intl' is not installed on the system.
Added a check which skips the affected tests if the extension is not available.
Fixes #3139
2012-01-17 18:44:55 +01:00
Manuel Kiessling
cacc880929
[Bugfix][Locale] Fixed incomplete Locale data loading
...
Sublocales like de_CH returned only incomplete results for
getDisplayCountries(), getDisplayLanguages() and getDisplayLocales(),
consisting only of results specific for this sublocale, but without the
results of their respective parent locale
2012-01-16 17:25:42 +01: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
42709c0ed8
merged branch stealth35/master (PR #1346 )
...
Commits
-------
6436da2
added quote
7dc4e24
[Tests][Locale] locale supported INTL_ICU_VERSION, use ReflectionExtension to find ICU version
Discussion
----------
[Tests][Locale] locale supported INTL_ICU_VERSION, use ReflectionExtension to find ICU version
---------------------------------------------------------------------------
by igorw at 2011/06/16 03:44:25 -0700
Nice.
`INTL_ICU_VERSION` is PHP 5.4 only, right?
Also, it may be possible to use:
$output = \ReflectionExtension::export('intl', true);
That way we can get rid of the output buffering.
---------------------------------------------------------------------------
by stloyd at 2011/06/16 03:49:22 -0700
@igorw It will be added in PHP 5.3.7 to.
---------------------------------------------------------------------------
by stealth35 at 2011/06/16 04:04:09 -0700
@igorw no export don't return the info table
2011-06-16 15:07:27 +02:00
stealth35
6436da25bc
added quote
2011-06-16 02:31:09 -07:00
stealth35
7dc4e2430f
[Tests][Locale] locale supported INTL_ICU_VERSION, use ReflectionExtension to find ICU version
2011-06-16 02:20:05 -07: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
Kris Wallsmith
e726cdd917
changed some skipped tests to incomplete
2011-04-26 07:22:22 -07: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
157f001253
Merge remote branch 'bschussek/intl-stub' into intl-stub
2011-03-13 21:50:25 -03:00
Eriksen Costa
9c6ccd8290
[Locale] replaced symfony-project.org by symfony.com
2011-03-13 21:22:11 -03:00
Bernhard Schussek
0eb04e487d
Merge remote branch 'Infranology/intl-stub' into intl-stub
2011-03-09 12:04:51 +01: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
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
Bernhard Schussek
33e70673c2
[Locale] Fixed failing StubNumberFormatterTest when intl extension is not loaded
2011-02-23 14:38:05 +01:00
Igor Wiedler
71c99422f3
[Locale] convenience createStubFormatter method for StubIntlDateFormatter tests
2011-02-23 14:20:47 +01:00