public function testNoClickedButton()
{
$button = $this->getMockBuilder('Symfony\Component\Form\SubmitButton')
->setConstructorArgs(array(new SubmitButtonBuilder('submit')))
->setMethods(array('isClicked'))
->getMock();
$button->expects($this->any())
->method('isClicked')
->will($this->returnValue(false));
$parentForm = $this->getBuilder('parent')->getForm();
$nestedForm = $this->getBuilder('nested')->getForm();
$this->form->setParent($parentForm);
$this->form->add($button);
$this->form->add($nestedForm);
$this->form->submit(array());
$this->assertNull($this->form->getClickedButton());
}