'/table
[./tr[@style="display: none"][./td[@colspan="2"]/input[@type="hidden"][@id="names__token"]]]
[count(./tr[./td/input])=1]
'
);
} public function testForm() { $view =
$this->factory->
createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType'
) ->
setMethod('PUT'
) ->
setAction('http://example.com'
) ->
add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType'
) ->
add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType'
) ->
getForm() ->
createView();
$html =
$this->
renderForm($view,
[ 'id' => 'my&id',
'attr' =>
['class' => 'my&class'
],
]);
$this->
assertMatchesXpath($html,