本文整理汇总了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();
}
示例2: setUp
public function setUp()
{
$this->forceAutoloader();
$this->error = false;
$this->manager = new SessionManager();
Registry::_unsetInstance();
}
示例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();
}
示例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);
}
示例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);
}
示例6: setUp
public function setUp()
{
Registry::_unsetInstance();
Form::setDefaultTranslator(null);
if (isset($this->error)) {
unset($this->error);
}
$this->element = new Element('foo');
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
示例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);
}
示例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();
}
示例14: tearDown
public function tearDown()
{
Registry::_unsetInstance();
}
示例15: setUp
public function setUp()
{
Registry::_unsetInstance();
}