Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ConfigurationWithArrayNodeRequiringOneElement example
'variable_node' => '%env(SOME)%',
]
)
;
$this
->
doProcess
(
$container
)
;
$this
->
assertSame
(
$expected
,
$container
->
resolveEnvPlaceholders
(
$ext
->
getConfig
(
)
)
)
;
}
public
function
testEmptyConfigFromMoreThanOneSource
(
)
{
$container
=
new
ContainerBuilder
(
)
;
$container
->
registerExtension
(
new
EnvExtension
(
new
ConfigurationWithArrayNodeRequiringOneElement
(
)
)
)
;
$container
->
loadFromExtension
(
'env_extension',
[
]
)
;
$this
->
doProcess
(
$container
)
;
$this
->
addToAssertionCount
(
1
)
;
}
public
function
testDiscardedEnvInConfig
(
)
{
$container
=
new
ContainerBuilder
(
)
;
$container
->
setParameter
(
'env(BOOLISH)', '1'
)
;