Skip to content

Commit b1d8212

Browse files
committed
[Intl] Make tests pass after the ICU data update
1 parent ba746be commit b1d8212

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setUp()
2424
parent::setUp();
2525

2626
// Since we test against "de_AT", we need the full implementation
27-
IntlTestHelper::requireFullIntl($this);
27+
IntlTestHelper::requireFullIntl($this, '57.1');
2828

2929
\Locale::setDefault('de_AT');
3030

Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function testReverseTransform($to, $from, $locale)
228228
public function testReverseTransformWithGrouping($to, $from, $locale)
229229
{
230230
// Since we test against other locales, we need the full implementation
231-
IntlTestHelper::requireFullIntl($this, false);
231+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
232232

233233
\Locale::setDefault($locale);
234234

@@ -377,7 +377,7 @@ public function testReverseTransformDoesNotRoundIfNoScale()
377377
public function testDecimalSeparatorMayBeDotIfGroupingSeparatorIsNotDot()
378378
{
379379
// Since we test against other locales, we need the full implementation
380-
IntlTestHelper::requireFullIntl($this, false);
380+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
381381

382382
\Locale::setDefault('fr');
383383
$transformer = new NumberToLocalizedStringTransformer(null, true);
@@ -397,7 +397,7 @@ public function testDecimalSeparatorMayBeDotIfGroupingSeparatorIsNotDot()
397397
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
398398
{
399399
// Since we test against "de_AT", we need the full implementation
400-
IntlTestHelper::requireFullIntl($this, false);
400+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
401401

402402
\Locale::setDefault('de_AT');
403403

@@ -412,7 +412,7 @@ public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDot()
412412
public function testDecimalSeparatorMayNotBeDotIfGroupingSeparatorIsDotWithNoGroupSep()
413413
{
414414
// Since we test against "de_DE", we need the full implementation
415-
IntlTestHelper::requireFullIntl($this, false);
415+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
416416

417417
\Locale::setDefault('de_DE');
418418

@@ -436,7 +436,7 @@ public function testDecimalSeparatorMayBeDotIfGroupingSeparatorIsDotButNoGroupin
436436
public function testDecimalSeparatorMayBeCommaIfGroupingSeparatorIsNotComma()
437437
{
438438
// Since we test against other locales, we need the full implementation
439-
IntlTestHelper::requireFullIntl($this, false);
439+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
440440

441441
\Locale::setDefault('bg');
442442
$transformer = new NumberToLocalizedStringTransformer(null, true);
@@ -455,6 +455,8 @@ public function testDecimalSeparatorMayBeCommaIfGroupingSeparatorIsNotComma()
455455
*/
456456
public function testDecimalSeparatorMayNotBeCommaIfGroupingSeparatorIsComma()
457457
{
458+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
459+
458460
$transformer = new NumberToLocalizedStringTransformer(null, true);
459461

460462
$transformer->reverseTransform('1,234,5');
@@ -465,6 +467,8 @@ public function testDecimalSeparatorMayNotBeCommaIfGroupingSeparatorIsComma()
465467
*/
466468
public function testDecimalSeparatorMayNotBeCommaIfGroupingSeparatorIsCommaWithNoGroupSep()
467469
{
470+
IntlTestHelper::requireFullIntl($this, '4.8.1.1');
471+
468472
$transformer = new NumberToLocalizedStringTransformer(null, true);
469473

470474
$transformer->reverseTransform('1234,5');

Tests/Extension/Core/Type/DateTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public function testMonthsOption()
504504
public function testMonthsOptionShortFormat()
505505
{
506506
// we test against "de_AT", so we need the full implementation
507-
IntlTestHelper::requireFullIntl($this);
507+
IntlTestHelper::requireFullIntl($this, '57.1');
508508

509509
\Locale::setDefault('de_AT');
510510

0 commit comments

Comments
 (0)