当前位置: 首页>>代码示例>>PHP>>正文


PHP Registry::_unsetInstance方法代码示例

本文整理汇总了PHP中Zend\Registry::_unsetInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP Registry::_unsetInstance方法的具体用法?PHP Registry::_unsetInstance怎么用?PHP Registry::_unsetInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\Registry的用法示例。


在下文中一共展示了Registry::_unsetInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

    /**
     * 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();
    }
开发者ID:noose,项目名称:zf2,代码行数:13,代码来源:CustomDijitTest.php

示例2: setUp

 public function setUp()
 {
     $this->forceAutoloader();
     $this->error = false;
     $this->manager = new SessionManager();
     Registry::_unsetInstance();
 }
开发者ID:navtis,项目名称:xerxes-pazpar2,代码行数:7,代码来源:SessionManagerTest.php

示例3: setUp

 public function setUp()
 {
     $this->application = new Application\Application('testing');
     $this->bootstrap = new Application\Bootstrap($this->application);
     $this->broker = $this->bootstrap->getBroker();
     Registry::_unsetInstance();
 }
开发者ID:RomanShumkov,项目名称:zf2,代码行数:7,代码来源:NavigationTest.php

示例4: setUp

 /**
  * 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);
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:14,代码来源:AccordionContainerTest.php

示例5: setUp

 /**
  * 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);
 }
开发者ID:rmarshall-quibids,项目名称:zf2,代码行数:14,代码来源:TextareaTest.php

示例6: setUp

 public function setUp()
 {
     Registry::_unsetInstance();
     Form::setDefaultTranslator(null);
     if (isset($this->error)) {
         unset($this->error);
     }
     $this->element = new Element('foo');
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:9,代码来源:ElementTest.php

示例7: setUp

 /**
  * 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();
 }
开发者ID:noose,项目名称:zf2,代码行数:15,代码来源:DojoTest.php

示例8: setUp

 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);
 }
开发者ID:rafalwrzeszcz,项目名称:zf2,代码行数:10,代码来源:DisplayGroupTest.php

示例9: setUp

 /**
  * 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);
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:16,代码来源:TabContainerTest.php

示例10: setUp

 /**
  * 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);
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:17,代码来源:DijitElementTest.php

示例11: setUp

 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');
 }
开发者ID:rexmac,项目名称:zf2,代码行数:12,代码来源:ElementTest.php

示例12: setUp

 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);
 }
开发者ID:alab1001101,项目名称:zf2,代码行数:13,代码来源:DisplayGroupTest.php

示例13: setUp

 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();
 }
开发者ID:rexmac,项目名称:zf2,代码行数:15,代码来源:TranslateTest.php

示例14: tearDown

 public function tearDown()
 {
     Registry::_unsetInstance();
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:4,代码来源:RegistryTest.php

示例15: setUp

 public function setUp()
 {
     Registry::_unsetInstance();
 }
开发者ID:nevvermind,项目名称:zf2,代码行数:4,代码来源:IbanTest.php


注:本文中的Zend\Registry::_unsetInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。