$names = Currencies::
getNames($displayLocale);
$keys =
array_keys($names);
sort($keys);
$this->
assertSame(self::CURRENCIES,
$keys);
// Names should be sorted
$sortedNames =
$names;
$collator =
new \
Collator($displayLocale);
$collator->
asort($names);
$this->
assertSame($sortedNames,
$names);
} public function testGetNamesDefaultLocale() { \Locale::
setDefault('de_AT'
);
$this->
assertSame(Currencies::
getNames('de_AT'
), Currencies::
getNames());
}