Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getNumericCodes example
$alpha3Codes
=
array_keys
(
$names
)
;
sort
(
$alpha3Codes
)
;
$this
->
assertSame
(
array_values
(
self::ALPHA2_TO_ALPHA3
)
,
$alpha3Codes
)
;
$alpha2Names
= Countries::
getNames
(
$displayLocale
)
;
$this
->
assertSame
(
array_values
(
$alpha2Names
)
,
array_values
(
$names
)
)
;
}
public
function
testGetNumericCodes
(
)
{
$this
->
assertSame
(
self::ALPHA2_TO_NUMERIC, Countries::
getNumericCodes
(
)
)
;
}
public
function
testGetNumericCode
(
)
{
foreach
(
self::COUNTRIES
as
$country
)
{
$this
->
assertSame
(
self::ALPHA2_TO_NUMERIC
[
$country
]
, Countries::
getNumericCode
(
$country
)
)
;
}
}
public
function
testNumericCodeExists
(
)
{