[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
This commit is contained in:
parent
9b71f30ade
commit
ef6f241bfe
@ -67,7 +67,7 @@ class StubLocaleTest extends LocaleTestCase
|
||||
|
||||
public function testGetCurrenciesData()
|
||||
{
|
||||
$symbol = $this->isGreaterOrEqualThanIcuVersion('4.8') ? 'BR$' : 'R$';
|
||||
$symbol = $this->isSameAsIcuVersion('4.8') ? 'BR$' : 'R$';
|
||||
|
||||
$currencies = StubLocale::getCurrenciesData('en');
|
||||
$this->assertEquals($symbol, $currencies['BRL']['symbol']);
|
||||
|
Reference in New Issue
Block a user