Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa3c66e

Browse filesBrowse files
committed
[Form] Fix transformer tests after the ICU update
1 parent 356a0ac commit aa3c66e
Copy full SHA for aa3c66e

File tree

2 files changed

+8
-8
lines changed
Filter options

2 files changed

+8
-8
lines changed

‎src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public function testReverseTransformEmpty()
108108

109109
public function testReverseTransformWithGrouping()
110110
{
111-
// Since we test against "de_AT", we need the full implementation
111+
// Since we test against "de_DE", we need the full implementation
112112
IntlTestHelper::requireFullIntl($this);
113113

114-
\Locale::setDefault('de_AT');
114+
\Locale::setDefault('de_DE');
115115

116116
$transformer = new IntegerToLocalizedStringTransformer(null, true);
117117

‎src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function testTransform($from, $to, $locale)
5454
public function provideTransformationsWithGrouping()
5555
{
5656
return array(
57-
array(1234.5, '1.234,5', 'de_AT'),
58-
array(12345.912, '12.345,912', 'de_AT'),
57+
array(1234.5, '1.234,5', 'de_DE'),
58+
array(12345.912, '12.345,912', 'de_DE'),
5959
array(1234.5, '1 234,5', 'fr'),
6060
array(1234.5, '1 234,5', 'ru'),
6161
array(1234.5, '1 234,5', 'fi'),
@@ -393,10 +393,10 @@ public function testDecimalSeparatorMayBeDotIfGroupingSeparatorIsNotDot()
393393
*/
394394
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
395395
{
396-
// Since we test against "de_AT", we need the full implementation
396+
// Since we test against "de_DE", we need the full implementation
397397
IntlTestHelper::requireFullIntl($this);
398398

399-
\Locale::setDefault('de_AT');
399+
\Locale::setDefault('de_DE');
400400

401401
$transformer = new NumberToLocalizedStringTransformer(null, true);
402402

@@ -408,10 +408,10 @@ public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
408408
*/
409409
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDotWithNoGroupSep()
410410
{
411-
// Since we test against "de_AT", we need the full implementation
411+
// Since we test against "de_DE", we need the full implementation
412412
IntlTestHelper::requireFullIntl($this);
413413

414-
\Locale::setDefault('de_AT');
414+
\Locale::setDefault('de_DE');
415415

416416
$transformer = new NumberToLocalizedStringTransformer(null, true);
417417

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.