);
} public function testCollection() { $form =
$this->factory->
createNamed('names', 'Symfony\Component\Form\Extension\Core\Type\CollectionType',
['a', 'b'
],
[ 'entry_type' => 'Symfony\Component\Form\Extension\Core\Type\TextType',
]);
$this->
assertWidgetMatchesXpath($form->
createView(),
[],
'/div
[
./div[./input[@type="text"][@value="a"]]
/following-sibling::div[./input[@type="text"][@value="b"]]
]
[count(./div[./input])=2]
'
);
} // https://github.com/symfony/symfony/issues/5038