當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。