[Locale] Fixed failing tests
This commit is contained in:
parent
f6b75b9de8
commit
1dcdcd38cd
@ -25,7 +25,10 @@ class LocaleTest extends IntlTestCase
|
|||||||
{
|
{
|
||||||
protected function setUp()
|
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);
|
Intl::setDataSource(Intl::STUB);
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class StubLocaleTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testGetCurrenciesData()
|
public function testGetCurrenciesData()
|
||||||
{
|
{
|
||||||
$currencies = StubLocale::getCurrenciesData('en');
|
$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('Brazilian Real', $currencies['BRL']['name']);
|
||||||
$this->assertEquals(2, $currencies['BRL']['fractionDigits']);
|
$this->assertEquals(2, $currencies['BRL']['fractionDigits']);
|
||||||
$this->assertEquals(0, $currencies['BRL']['roundingIncrement']);
|
$this->assertEquals(0, $currencies['BRL']['roundingIncrement']);
|
||||||
|
Reference in New Issue
Block a user