From ef6f241bfebab8280f12aceb684569cd8f7084f8 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Sat, 29 Dec 2012 19:53:32 +0100 Subject: [PATCH] [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 --- src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php b/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php index 112812b122..568ee1ead3 100644 --- a/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php +++ b/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php @@ -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']);