minor #19861 [Form] Fix intl related failures (jakzal)
This PR was merged into the 2.8 branch.
Discussion
----------
[Form] Fix intl related failures
| Q | A
| ------------- | ---
| Branch? | 2.8
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #19854
| License | MIT
| Doc PR | -
Commits
-------
aa3c66e
[Form] Fix transformer tests after the ICU update
This commit is contained in:
commit
7e6ba292ac
@ -108,10 +108,10 @@ class IntegerToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCas
|
|||||||
|
|
||||||
public function testReverseTransformWithGrouping()
|
public function testReverseTransformWithGrouping()
|
||||||
{
|
{
|
||||||
// Since we test against "de_AT", we need the full implementation
|
// Since we test against "de_DE", we need the full implementation
|
||||||
IntlTestHelper::requireFullIntl($this);
|
IntlTestHelper::requireFullIntl($this);
|
||||||
|
|
||||||
\Locale::setDefault('de_AT');
|
\Locale::setDefault('de_DE');
|
||||||
|
|
||||||
$transformer = new IntegerToLocalizedStringTransformer(null, true);
|
$transformer = new IntegerToLocalizedStringTransformer(null, true);
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@ class NumberToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function provideTransformationsWithGrouping()
|
public function provideTransformationsWithGrouping()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array(1234.5, '1.234,5', 'de_AT'),
|
array(1234.5, '1.234,5', 'de_DE'),
|
||||||
array(12345.912, '12.345,912', 'de_AT'),
|
array(12345.912, '12.345,912', 'de_DE'),
|
||||||
array(1234.5, '1 234,5', 'fr'),
|
array(1234.5, '1 234,5', 'fr'),
|
||||||
array(1234.5, '1 234,5', 'ru'),
|
array(1234.5, '1 234,5', 'ru'),
|
||||||
array(1234.5, '1 234,5', 'fi'),
|
array(1234.5, '1 234,5', 'fi'),
|
||||||
@ -393,10 +393,10 @@ class NumberToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
|
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
|
||||||
{
|
{
|
||||||
// Since we test against "de_AT", we need the full implementation
|
// Since we test against "de_DE", we need the full implementation
|
||||||
IntlTestHelper::requireFullIntl($this);
|
IntlTestHelper::requireFullIntl($this);
|
||||||
|
|
||||||
\Locale::setDefault('de_AT');
|
\Locale::setDefault('de_DE');
|
||||||
|
|
||||||
$transformer = new NumberToLocalizedStringTransformer(null, true);
|
$transformer = new NumberToLocalizedStringTransformer(null, true);
|
||||||
|
|
||||||
@ -408,10 +408,10 @@ class NumberToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDotWithNoGroupSep()
|
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDotWithNoGroupSep()
|
||||||
{
|
{
|
||||||
// Since we test against "de_AT", we need the full implementation
|
// Since we test against "de_DE", we need the full implementation
|
||||||
IntlTestHelper::requireFullIntl($this);
|
IntlTestHelper::requireFullIntl($this);
|
||||||
|
|
||||||
\Locale::setDefault('de_AT');
|
\Locale::setDefault('de_DE');
|
||||||
|
|
||||||
$transformer = new NumberToLocalizedStringTransformer(null, true);
|
$transformer = new NumberToLocalizedStringTransformer(null, true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user