Ejemplo n.º 1
0
    /**
     * 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();
    }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->forceAutoloader();
     $this->error = false;
     $this->manager = new SessionManager();
     Registry::_unsetInstance();
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     $this->application = new Application\Application('testing');
     $this->bootstrap = new Application\Bootstrap($this->application);
     $this->broker = $this->bootstrap->getBroker();
     Registry::_unsetInstance();
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }
Ejemplo n.º 5
0
 /**
  * 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);
 }
Ejemplo n.º 6
0
 public function setUp()
 {
     Registry::_unsetInstance();
     Form::setDefaultTranslator(null);
     if (isset($this->error)) {
         unset($this->error);
     }
     $this->element = new Element('foo');
 }
Ejemplo n.º 7
0
 /**
  * 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();
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 /**
  * 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);
 }
Ejemplo n.º 10
0
 /**
  * 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);
 }
Ejemplo n.º 11
0
 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');
 }
Ejemplo n.º 12
0
 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);
 }
Ejemplo n.º 13
0
 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();
 }
Ejemplo n.º 14
0
 public function tearDown()
 {
     Registry::_unsetInstance();
 }
Ejemplo n.º 15
0
 public function setUp()
 {
     Registry::_unsetInstance();
 }
Ejemplo n.º 16
0
 /**
  * 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');
 }
Ejemplo n.º 17
0
 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();
 }
Ejemplo n.º 18
0
 /**
  * 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();
 }