$expected->
setSourceContext($source);
$this->
assertEquals($expected,
$parser->
parse($stream)->
getNode('body'
)->
getNode(0
));
} public static function getTestsForFormTheme() { return [ [ '{% form_theme form "tpl1" %}',
new FormThemeNode( new NameExpression('form', 1
),
new ArrayExpression([ new ConstantExpression(0, 1
),
new ConstantExpression('tpl1', 1
),
], 1
),
1,
'form_theme'
),
],
[ '{% form_theme form "tpl1" "tpl2" %}',