Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
twig_is_root_form example
return
[
[
true,
new
FormView
(
)
]
,
[
false,
new
FormView
(
new
FormView
(
)
)
]
,
]
;
}
/** * @dataProvider isRootFormProvider */
public
function
testIsRootForm
(
$expected
, FormView
$formView
)
{
$this
->
assertSame
(
$expected
, \Symfony\Bridge\Twig\Extension\
twig_is_root_form
(
$formView
)
)
;
}
public
function
testMoneyWidgetInIso
(
)
{
$environment
=
new
Environment
(
new
FilesystemLoader
(
[
__DIR__.'/../../Resources/views/Form',
__DIR__.'/Fixtures/templates/form',
]
)
,
[
'strict_variables' => true
]
)
;
$environment
->
addExtension
(
new
TranslationExtension
(
new
StubTranslator
(
)
)
)
;
$environment
->
addExtension
(
new
FormExtension
(
)
)
;
$environment
->
setCharset
(
'ISO-8859-1'
)
;