[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:
Jakub Zalas 2012-12-29 19:53:32 +01:00
parent 9b71f30ade
commit ef6f241bfe
1 changed files with 1 additions and 1 deletions

View File

@ -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']);