/**
* @param string $name
* @param string $dataClass
* @param array $options
* @param FormInterface $parent
* @return FormInterface
*/
protected function createForm($name, $dataClass = null, array $options = array(), FormInterface $parent = null)
{
$eventDispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
$config = new FormConfigBuilder($name, $dataClass, $eventDispatcher, $options);
$result = new Form($config);
$result->setParent($parent);
return $result;
}