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


PHP Zend_Registry::_unsetInstance方法代码示例

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


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

示例1: tearDown

 protected function tearDown()
 {
     // clear registry for locale testing
     Zend_Registry::_unsetInstance();
     // restore default options value
     Zle_View_Helper_FormDatePicker::setDatePickerDefaultOptions($this->_helperOptions);
 }
开发者ID:JellyBellyDev,项目名称:zle,代码行数:7,代码来源:FormDatePickerTest.php

示例2: tearDown

 public function tearDown()
 {
     $this->_helper = null;
     $this->_view = null;
     // View-Helpers use the registry!
     Zend_Registry::_unsetInstance();
 }
开发者ID:robo47,项目名称:robo47-components,代码行数:7,代码来源:GlobalsTest.php

示例3: minimalBootstrapAndGenerateFile

 public static function minimalBootstrapAndGenerateFile()
 {
     self::minimalBootstrap();
     file_put_contents('cache/setup' . Kwf_Setup::CACHE_SETUP_VERSION . '.php', self::generateCode());
     Zend_Registry::_unsetInstance();
     //cache/setup?.php will call setClassName again
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:Setup.php

示例4: setUp

 public function setUp()
 {
     Zend_Registry::_unsetInstance();
     $this->view = $this->getView();
     $this->jquery = new ZendX_JQuery_View_Helper_JQuery_Container();
     $this->jquery->setView($this->view);
     Zend_Registry::set('ZendX_JQuery_View_Helper_JQuery', $this->jquery);
 }
开发者ID:crodriguezn,项目名称:crossfit-milagro,代码行数:8,代码来源:jQueryTestCase.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()
 {
     Zend_Registry::_unsetInstance();
     Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
     $this->view = $this->getView();
     $this->helper = new Zend_Dojo_View_Helper_ValidationTextBox();
     $this->helper->setView($this->view);
 }
开发者ID:omusico,项目名称:logica,代码行数:14,代码来源:ValidationTextBoxTest.php

示例6: setUp

 public function setUp()
 {
     Zend_Registry::_unsetInstance();
     $this->view = $this->getView();
     $this->helper = new ZendX_MooTools_View_Helper_MooTools_Container();
     $this->helper->setView($this->view);
     Zend_Registry::set('ZendX_MooTools_View_Helper_MooTools', $this->helper);
 }
开发者ID:benjamingb,项目名称:ZendX_MooTools,代码行数:8,代码来源:MooToolsTest.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()
 {
     Zend_Registry::_unsetInstance();
     Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
     $this->view = $this->getView();
     $this->helper = new Zend_Dojo_View_Helper_AccordionContainer();
     $this->helper->setView($this->view);
 }
开发者ID:stunti,项目名称:zf2,代码行数:14,代码来源:AccordionContainerTest.php

示例8: testGetAnonServiceMap

 /**
  * @group ServerTests
  */
 public function testGetAnonServiceMap()
 {
     // unset registry (and the user object)
     Zend_Registry::_unsetInstance();
     $smd = Tinebase_Server_Json::getServiceMap();
     $smdArray = $smd->toArray();
     $this->assertTrue(isset($smdArray['services']['Tinebase.ping']));
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:11,代码来源:JsonTests.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()
 {
     Zend_Registry::_unsetInstance();
     Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
     $this->view = $this->getView();
     $this->helper = new Zend_Dojo_View_Helper_FilteringSelect();
     $this->helper->setView($this->view);
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:14,代码来源:FilteringSelectTest.php

示例10: tearDown

 public function tearDown()
 {
     $this->_helper = null;
     $this->_view = null;
     Robo47_View_Helper_Ckeditor::unsetDefaultOptions();
     // View-Helpers use the registry!
     Zend_Registry::_unsetInstance();
 }
开发者ID:robo47,项目名称:robo47-components,代码行数:8,代码来源:CkeditorTest.php

示例11: 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()
 {
     Zend_Registry::_unsetInstance();
     Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
     $this->view = $this->getView();
     $this->element = $this->getElement();
     $this->element->setView($this->view);
 }
开发者ID:omusico,项目名称:logica,代码行数:14,代码来源:ButtonTest.php

示例12: 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()
 {
     Zend_Registry::_unsetInstance();
     $this->view = $this->getView();
     $this->helper = new Zend_Dojo_View_Helper_Dojo_Container();
     $this->helper->setView($this->view);
     Zend_Registry::set('Zend_Dojo_View_Helper_Dojo', $this->helper);
     Zend_Dojo_View_Helper_Dojo::setUseProgrammatic();
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:15,代码来源:DojoTest.php

示例13: setUp

 public function setUp()
 {
     Zend_Registry::_unsetInstance();
     Zend_Form::setDefaultTranslator(null);
     if (isset($this->error)) {
         unset($this->error);
     }
     $this->element = new Zend_Form_Element('foo');
     Zend_Controller_Action_HelperBroker::resetHelpers();
 }
开发者ID:vicfryzel,项目名称:zf,代码行数:10,代码来源:ElementTest.php

示例14: testHookStorageViaAddPluginHookFunction

 public function testHookStorageViaAddPluginHookFunction()
 {
     $this->broker->register();
     $this->broker->setCurrentPluginDirName('fake-plugin-name');
     add_plugin_hook('initialize', 'fake_plugin_initialize');
     // Using the registry should not interfere with the other unit tests.
     Zend_Registry::_unsetInstance();
     $callback = $this->broker->getHook('fake-plugin-name', 'initialize');
     $this->assertEquals('fake_plugin_initialize', $callback[0]);
 }
开发者ID:emhoracek,项目名称:Omeka,代码行数:10,代码来源:BrokerTest.php

示例15: tearDown

 public function tearDown()
 {
     $loader = Zend_Loader_Autoloader::getInstance();
     $HtmlPurifierLoaders = $loader->getNamespaceAutoloaders('HtmlPurifier');
     foreach ($HtmlPurifierLoaders as $hloader) {
         $loader->removeAutoloader($hloader, 'HtmlPurifier');
     }
     Robo47_Filter_HtmlPurifier::setDefaultPurifier();
     Zend_Registry::_unsetInstance();
 }
开发者ID:robo47,项目名称:robo47-components,代码行数:10,代码来源:HtmlPurifierTest.php


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