Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 7b0b96c

Browse files
committed
Adds unit test for parent locale in Zend_Currency
1 parent 116681b commit 7b0b96c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Zend/CurrencyTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,4 +852,13 @@ public function providerConstructorAllowsOverridingCurrencyDisplayFormat()
852852
array(Zend_Currency::USE_NAME, 'US Dollar100.00')
853853
);
854854
}
855+
856+
/**
857+
* @group GH-516
858+
*/
859+
public function testToCurrencyWithLocaleWhichHasParentLocale()
860+
{
861+
$currency = new Zend_Currency(null, 'es_AR');
862+
$this->assertEquals('$10,00', $currency->toCurrency(10));
863+
}
855864
}

0 commit comments

Comments
 (0)