protected function setUp() { if (!extension_loaded('intl')) { $this->markTestSkipped('The "intl" extension is not available'); } \Locale::setDefault('en'); $this->csrfProvider = $this->getMock('Symfony\\Component\\Form\\Extension\\Csrf\\CsrfProvider\\CsrfProviderInterface'); parent::setUp(); }
protected function setUp() { parent::setUp(); $this->handlerManager = $this->getHandlerManagerMock(); $dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface'); $this->builder = new FormBuilder(null, null, $dispatcher, $this->factory); $this->form = $this->factory->create('vlabs_file', null, array('add_del' => true, 'del_label' => 'Delete')); $this->form->setParent($this->getFormMock()); }
protected function setUp() { parent::setUp(); $this->dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface'); $this->builder = new FormBuilder(null, null, $this->dispatcher, $this->factory); }