8000 [Locale] Fixed failing tests · symfony/symfony@1dcdcd3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1dcdcd3

Browse files
committed
[Locale] Fixed failing tests
1 parent f6b75b9 commit 1dcdcd3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Symfony/Component/Locale/Tests/LocaleTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ class LocaleTest extends IntlTestCase
2525
{
2626
protected function setUp()
2727
{
28-
$this->skipIfIntlExtensionNotLoaded();
28+
// This class extends from \Ļocale, so we need the extension
29+
if (!Intl::isExtensionLoaded()) {
30+
$this->markTestSkipped('The intl extension is not available.');
31+
}
2932

3033
Intl::setDataSource(Intl::STUB);
3134

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function setUp()
2828
public function testGetCurrenciesData()
2929
{
3030
$currencies = StubLocale::getCurrenciesData('en');
31-
$this->assertEquals('BR$', $currencies['BRL']['symbol']);
31+
$this->assertEquals('R$', $currencies['BRL']['symbol']);
3232
$this->assertEquals('Brazilian Real', $currencies['BRL']['name']);
3333
$this->assertEquals(2, $currencies['BRL']['fractionDigits']);
3434
$this->assertEquals(0, $currencies['BRL']['roundingIncrement']);

0 commit comments

Comments
 (0)
0