Skip to content

Commit ef6f241

Browse files
committed
[Locale] Fixed the StubLocaleTest for ICU versions lower than 4.8.
Symbol for Brazilian Real is BR$ only in ICU 4.8. All previous and later versions use R$. Links to the data files: * http://source.icu-project.org/repos/icu/icu/tags/release-4-8/source/data/curr/en.txt * http://source.icu-project.org/repos/icu/icu/tags/release-4-4/source/data/curr/en.txt * http://source.icu-project.org/repos/icu/icu/tags/release-49-1/source/data/curr/en.txt
1 parent 9b71f30 commit ef6f241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testGetCurrenciesDataWithUnsupportedLocale()
6767

6868
public function testGetCurrenciesData()
6969
{
70-
$symbol = $this->isGreaterOrEqualThanIcuVersion('4.8') ? 'BR$' : 'R$';
70+
$symbol = $this->isSameAsIcuVersion('4.8') ? 'BR$' : 'R$';
7171

7272
$currencies = StubLocale::getCurrenciesData('en');
7373
$this->assertEquals($symbol, $currencies['BRL']['symbol']);

0 commit comments

Comments
 (0)