'action' => '0',
]);
$html =
$this->
renderStart($form->
createView());
$this->
assertSame('<form name="form" method="get" action="0">',
$html);
} public static function isRootFormProvider() { 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));
}