/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); DojoHelper::setUseDeclarative(); $this->view = $this->getView(); }
public function setUp() { $this->forceAutoloader(); $this->error = false; $this->manager = new SessionManager(); Registry::_unsetInstance(); }
public function setUp() { $this->application = new Application\Application('testing'); $this->bootstrap = new Application\Bootstrap($this->application); $this->broker = $this->bootstrap->getBroker(); Registry::_unsetInstance(); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); DojoHelper::setUseDeclarative(); $this->view = $this->getView(); $this->helper = new AccordionContainerHelper(); $this->helper->setView($this->view); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); DojoHelper::setUseDeclarative(); $this->view = $this->getView(); $this->helper = new TextareaHelper(); $this->helper->setView($this->view); }
public function setUp() { Registry::_unsetInstance(); Form::setDefaultTranslator(null); if (isset($this->error)) { unset($this->error); } $this->element = new Element('foo'); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); $this->view = $this->getView(); $this->helper = new DojoContainer(); $this->helper->setView($this->view); Registry::set('Zend\Dojo\View\Helper\Dojo', $this->helper); DojoHelper::setUseProgrammatic(); }
public function setUp() { Registry::_unsetInstance(); Form::setDefaultTranslator(null); if (isset($this->error)) { unset($this->error); } $this->loader = new PluginLoader(array('Zend\\Form\\Decorator' => 'Zend/Form/Decorator')); $this->group = new DisplayGroup('test', $this->loader); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); DojoHelper::setUseDeclarative(); $this->view = $this->getView(); $this->decorator = new TabContainerDecorator(); $this->element = $this->getElement(); $this->element->setView($this->view); $this->decorator->setElement($this->element); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); DojoHelper::setUseDeclarative(); $this->errors = array(); $this->view = $this->getView(); $this->decorator = new DijitElementDecorator(); $this->element = $this->getElement(); $this->element->setView($this->view); $this->decorator->setElement($this->element); }
public function setUp() { $front = FrontController::getInstance(); $front->resetInstance(); $this->broker = $front->getHelperBroker(); Registry::_unsetInstance(); Form::setDefaultTranslator(null); if (isset($this->error)) { unset($this->error); } $this->element = new Element('foo'); }
public function setUp() { Registry::_unsetInstance(); Form::setDefaultTranslator(null); if (isset($this->error)) { unset($this->error); } $front = FrontController::getInstance(); $front->resetInstance(); $this->broker = $front->getHelperBroker(); $this->loader = new PluginLoader(array('Zend\\Form\\Decorator' => 'Zend/Form/Decorator')); $this->group = new DisplayGroup('test', $this->loader); }
public function setUp() { // Store original autoloaders $this->loaders = spl_autoload_functions(); if (!is_array($this->loaders)) { // spl_autoload_functions does not return empty array when no // autoloaders registered... $this->loaders = array(); } Autoloader::resetInstance(); $this->autoloader = Autoloader::getInstance(); $this->application = new Application\Application('testing'); $this->bootstrap = new Application\Bootstrap($this->application); Registry::_unsetInstance(); }
public function tearDown() { Registry::_unsetInstance(); }
public function setUp() { Registry::_unsetInstance(); }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { Registry::_unsetInstance(); Form::setDefaultTranslator(null); $this->element = new FileElement('foo'); }
public function testZF3679() { $locale = new Locale\Locale('de_AT'); \Zend\Registry::set('Zend_Locale', $locale); $lang = new Translator\Translator(Translator\Translator::AN_ARRAY, array('msg1' => 'message1'), 'de_AT'); $this->assertEquals('de_AT', $lang->getLocale()); \Zend\Registry::_unsetInstance(); }
/** * Creates a new Zend_Validator_Date object for each test method * * @return void */ public function setUp() { Registry::_unsetInstance(); $this->_errorOccurred = false; $this->_validator = new Validator\Date(); }