Skip to content

Commit 7eea60f

Browse files
committed
[Intl] Make tests pass after the ICU data update
1 parent 5f6687a commit 7eea60f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Tests/NumberFormatter/AbstractNumberFormatterTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,18 @@ public function formatCurrencyWithCurrencyStyleProvider()
8383
*/
8484
public function testFormatCurrencyWithCurrencyStyleCostaRicanColonsRounding($value, $currency, $symbol, $expected)
8585
{
86+
IntlTestHelper::requireIntl($this, '58.1');
87+
8688
$formatter = $this->getNumberFormatter('en', NumberFormatter::CURRENCY);
8789
$this->assertEquals(sprintf($expected, $symbol), $formatter->formatCurrency($value, $currency));
8890
}
8991

9092
public function formatCurrencyWithCurrencyStyleCostaRicanColonsRoundingProvider()
9193
{
9294
return array(
93-
array(100, 'CRC', 'CRC', '%s100'),
94-
array(-100, 'CRC', 'CRC', '-%s100'),
95-
array(1000.12, 'CRC', 'CRC', '%s1,000'),
95+
array(100, 'CRC', 'CRC', '%s100.00'),
96+
array(-100, 'CRC', 'CRC', '-%s100.00'),
97+
array(1000.12, 'CRC', 'CRC', '%s1,000.12'),
9698
);
9799
}
98100

Tests/NumberFormatter/Verification/NumberFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testCreate()
3434

3535
public function testGetTextAttribute()
3636
{
37-
IntlTestHelper::requireFullIntl($this);
37+
IntlTestHelper::requireFullIntl($this, '57.1');
3838

3939
parent::testGetTextAttribute();
4040
}

0 commit comments

Comments
 (0)