[Locale] Fixed failing tests

This commit is contained in:
Bernhard Schussek 2013-03-15 23:41:39 +01:00
parent f6b75b9de8
commit 1dcdcd38cd
2 changed files with 5 additions and 2 deletions

View File

@ -25,7 +25,10 @@ class LocaleTest extends IntlTestCase
{
protected function setUp()
{
$this->skipIfIntlExtensionNotLoaded();
// This class extends from \Ļocale, so we need the extension
if (!Intl::isExtensionLoaded()) {
$this->markTestSkipped('The intl extension is not available.');
}
Intl::setDataSource(Intl::STUB);

View File

@ -28,7 +28,7 @@ class StubLocaleTest extends \PHPUnit_Framework_TestCase
public function testGetCurrenciesData()
{
$currencies = StubLocale::getCurrenciesData('en');
$this->assertEquals('BR$', $currencies['BRL']['symbol']);
$this->assertEquals('R$', $currencies['BRL']['symbol']);
$this->assertEquals('Brazilian Real', $currencies['BRL']['name']);
$this->assertEquals(2, $currencies['BRL']['fractionDigits']);
$this->assertEquals(0, $currencies['BRL']['roundingIncrement']);