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


PHP Registry::unsetRegistry方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     // Necessary to ensure placeholders do not persist between individual tests
     PlaceholderRegistry::unsetRegistry();
     $this->renderer = new PhpRenderer();
     $this->strategy = new PhpRendererStrategy($this->renderer);
     $this->event = new ViewEvent();
     $this->response = new HttpResponse();
 }
开发者ID:razvansividra,项目名称:pnlzf2-1,代码行数:9,代码来源:PhpRendererStrategyTest.php

示例2: setUp

 public function setUp()
 {
     \Zend\View\Helper\Placeholder\Registry::unsetRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $renderer = new \Zend\View\Renderer\PhpRenderer();
     $renderer->plugin('basePath')->setBasePath($this->basePath);
     $this->helper = new CtrlJsLoader();
     $this->helper->setView($renderer);
 }
开发者ID:siad007,项目名称:ctrllib,代码行数:9,代码来源:CtrlJsLoaderTest.php

示例3: 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()
 {
     PlaceholderRegistry::unsetRegistry();
     Helper\Doctype::unsetDoctypeRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $this->view     = new View();
     $this->helper   = new Helper\HeadLink();
     $this->helper->setView($this->view);
 }
开发者ID:benivaldo,项目名称:zf2-na-pratica,代码行数:15,代码来源:HeadLinkTest.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()
 {
     $this->error = false;
     PlaceholderRegistry::unsetRegistry();
     Helper\Doctype::unsetDoctypeRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $this->view = new View();
     $this->view->plugin('doctype')->__invoke('XHTML1_STRICT');
     $this->helper = new Helper\HeadMeta();
     $this->helper->setView($this->view);
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:17,代码来源:HeadMetaTest.php

示例5: _after

 public function _after(\Codeception\TestCase $test)
 {
     $_SESSION = array();
     $_GET = array();
     $_POST = array();
     $_COOKIE = array();
     // reset singleton
     StaticEventManager::resetInstance();
     Placeholder\Registry::unsetRegistry();
     $this->queries = 0;
     $this->time = 0;
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:12,代码来源:ZF2.php

示例6: _after

 public function _after(\Codeception\TestCase $test)
 {
     $_SESSION = array();
     $_GET = array();
     $_POST = array();
     $_COOKIE = array();
     // reset singleton
     StaticEventManager::resetInstance();
     // Reset singleton placeholder if version < 2.2.0, no longer required in 2.2.0+
     if (Version::compareVersion('2.2.0') >= 0) {
         Placeholder\Registry::unsetRegistry();
     }
     $this->queries = 0;
     $this->time = 0;
 }
开发者ID:Eli-TW,项目名称:Codeception,代码行数:15,代码来源:ZF2.php

示例7: _after

 public function _after(\Codeception\TestCase $test)
 {
     $_SESSION = [];
     $_GET = [];
     $_POST = [];
     $_COOKIE = [];
     // reset singleton
     StaticEventManager::resetInstance();
     // Reset singleton placeholder if version < 2.2.0, no longer required in 2.2.0+
     if (Version::compareVersion('2.2.0') >= 0) {
         Placeholder\Registry::unsetRegistry();
     }
     //Close the session, if any are open
     if (session_status() == PHP_SESSION_ACTIVE) {
         session_write_close();
     }
     $this->queries = 0;
     $this->time = 0;
 }
开发者ID:namnv609,项目名称:Codeception,代码行数:19,代码来源:ZF2.php

示例8: 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::unsetRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $this->helper = new Helper\HeadTitle();
 }
开发者ID:haoyanfei,项目名称:zf2,代码行数:12,代码来源:HeadTitleTest.php

示例9: tearDown

 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->placeholder);
     PlaceholderRegistry::unsetRegistry();
 }
开发者ID:benivaldo,项目名称:zf2-na-pratica,代码行数:11,代码来源:PlaceholderTest.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::unsetRegistry();
     $this->registry = new Registry();
 }
开发者ID:navassouza,项目名称:zf2,代码行数:11,代码来源:RegistryTest.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\View\Helper\Placeholder\Registry::unsetRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $this->helper = new Foo();
 }
开发者ID:navassouza,项目名称:zf2,代码行数:12,代码来源:StandaloneContainerTest.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()
 {
     Registry::unsetRegistry();
     $this->basePath = __DIR__ . '/_files/modules';
     $this->helper = new Helper\InlineScript();
 }
开发者ID:navassouza,项目名称:zf2,代码行数:12,代码来源:InlineScriptTest.php

示例13: reset

 /**
  * Reset the request
  *
  * @return AbstractControllerTestCase
  */
 public function reset()
 {
     // force to re-create all components
     $this->application = null;
     // reset server datas
     $_SESSION = array();
     $_GET = array();
     $_POST = array();
     $_COOKIE = array();
     // reset singleton
     StaticEventManager::resetInstance();
     Placeholder\Registry::unsetRegistry();
     return $this;
 }
开发者ID:razvansividra,项目名称:pnlzf2-1,代码行数:19,代码来源:AbstractControllerTestCase.php


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