Symfony\Component\Form\Tests\AbstractFormTest::getBuilder PHP Method

getBuilder() protected method

protected getBuilder ( string $name = 'name', Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher = null, string $dataClass = null, array $options = [] ) : FormBuilder
$name string
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$dataClass string
$options array
return Symfony\Component\Form\FormBuilder
    protected function getBuilder($name = 'name', EventDispatcherInterface $dispatcher = null, $dataClass = null, array $options = array())
    {
        return new FormBuilder($name, $dataClass, $dispatcher ?: $this->dispatcher, $this->factory, $options);
    }