DMS\Bundle\FilterBundle\Tests\Form\EventListener\DelegatingFilterListenerTest::getBuilder PHP Method

getBuilder() protected method

protected getBuilder ( $name = 'name', $propertyPath = null )
    protected function getBuilder($name = 'name', $propertyPath = null)
    {
        $builder = new FormBuilder($name, '', $this->dispatcher, $this->factory);
        $builder->setAttribute('property_path', new PropertyPath($propertyPath ?: $name));
        $builder->setAttribute('error_mapping', array());
        $builder->setErrorBubbling(false);
        return $builder;
    }