Skip to content

Commit

Permalink
magento#21001 - make swiss group sympbol icu version dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
kdegorski committed Mar 22, 2019
1 parent 8d7b964 commit 3825545
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ public function testGetPriceFormat($localeCode, $currencyCode, array $expectedRe
*/
public function getPriceFormatDataProvider(): array
{
$swissGroupSymbol = INTL_ICU_VERSION >= 59.1 ? '' : '\'';
return [
['en_US', 'USD', ['decimalSymbol' => '.', 'groupSymbol' => ',']],
['de_DE', 'EUR', ['decimalSymbol' => ',', 'groupSymbol' => '.']],
['de_CH', 'CHF', ['decimalSymbol' => '.', 'groupSymbol' => '\'']],
['de_CH', 'CHF', ['decimalSymbol' => '.', 'groupSymbol' => $swissGroupSymbol]],
['uk_UA', 'UAH', ['decimalSymbol' => ',', 'groupSymbol' => ' ']]
];
}
Expand Down

0 comments on commit 3825545

Please sign in to comment.