本文整理汇总了PHP中Zend_Controller_Action_HelperBroker::resetHelpers方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Controller_Action_HelperBroker::resetHelpers方法的具体用法?PHP Zend_Controller_Action_HelperBroker::resetHelpers怎么用?PHP Zend_Controller_Action_HelperBroker::resetHelpers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Controller_Action_HelperBroker
的用法示例。
在下文中一共展示了Zend_Controller_Action_HelperBroker::resetHelpers方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
// Make sure only our fake Helper is available
Zend_Controller_Action_HelperBroker::resetHelpers();
Zend_Controller_Action_HelperBroker::addHelper(new Waf_Zend_Controller_ActionTest_TestHelper());
$this->controller = new Waf_Zend_Controller_Action($this->getMock('Zend_Controller_Request_Abstract'), $this->getMock('Zend_Controller_Response_Abstract'));
}
示例2: setUp
public function setUp()
{
$this->_controller = Zend_Controller_Front::getInstance();
$this->_controller->resetInstance();
$this->_controller->setControllerDirectory(dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files')->setParam('noErrorHandler', true)->setParam('noViewRenderer', true)->returnResponse(true)->throwExceptions(false);
Zend_Controller_Action_HelperBroker::resetHelpers();
}
示例3: setUp
public function setUp()
{
$this->front = Zend_Controller_Front::getInstance();
$this->front->resetInstance();
$this->front->setParam('noViewRenderer', true)->setParam('noErrorHandler', true);
Zend_Controller_Action_HelperBroker::resetHelpers();
}
示例4: clean
private function clean()
{
Zend_Controller_Front::getInstance()->resetInstance();
Zend_Auth::getInstance()->clearIdentity();
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->request = null;
$this->response = null;
}
示例5: setUp
public function setUp()
{
$this->_controller = new Zend_Controller_ActionTest_TestController(new Zend_Controller_Request_Http(), new Zend_Controller_Response_Cli(), array('foo' => 'bar', 'bar' => 'baz'));
Zend_Controller_Front::getInstance()->resetInstance();
Zend_Controller_Action_HelperBroker::resetHelpers();
$redirector = $this->_controller->getHelper('redirector');
$redirector->setExit(false);
}
示例6: tearDown
/**
* See {@link PHPUnit_Framework_TestCase::tearDown()} for details.
*/
protected function tearDown()
{
$this->controller = null;
$this->request = null;
$this->response = null;
Zend_Controller_Action_HelperBroker::resetHelpers();
parent::tearDown();
}
示例7: setUp
public function setUp()
{
$this->front = Zend_Controller_Front::getInstance();
$this->front->resetInstance();
$this->front->setParam('noViewRenderer', true)->setParam('noErrorHandler', true)->throwExceptions(true);
Zend_Controller_Action_HelperBroker::resetHelpers();
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setActionController();
}
示例8: setUp
public function setUp()
{
Zend_Form::setDefaultTranslator(null);
if (isset($this->error)) {
unset($this->error);
}
$this->element = new Zend_Form_Element('foo');
Zend_Controller_Action_HelperBroker::resetHelpers();
}
示例9: setUp
public function setUp()
{
$this->clearRegistry();
Zend_Form::setDefaultTranslator(null);
if (isset($this->error)) {
unset($this->error);
}
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->form = new Zend_Form();
}
示例10: setUp
public function setUp()
{
Zend_Form::setDefaultTranslator(null);
if (isset($this->error)) {
unset($this->error);
}
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->loader = new Zend_Loader_PluginLoader(array('Zend_Form_Decorator' => 'Zend/Form/Decorator'));
$this->group = new Zend_Form_DisplayGroup('test', $this->loader);
}
示例11: setUp
public function setUp()
{
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->loader = new Zend_Loader_PluginLoader(
array('Zend_Form_Decorator' => 'Zend/Form/Decorator')
);
$this->group = new Zend_Form_DisplayGroup(
'test',
$this->loader
);
}
示例12: setUp
protected function setUp()
{
$db = new Zend_Db_Adapter_Pdo_Sqlite(array('dbname' => dirname(__FILE__) . '/Paginator/_files/test.sqlite'));
$this->_query = $db->select()->from('test');
$this->_testCollection = range(1, 101);
$this->_paginator = Zend_Paginator::factory($this->_testCollection);
$this->_config = new Zend_Config_Xml(dirname(__FILE__) . '/Paginator/_files/config.xml');
// get a fresh new copy of ViewRenderer in each tests
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->_restorePaginatorDefaults();
}
示例13: 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_Controller_Action_Helper_AutoCompleteTest_LayoutOverride::$_mvcInstance = null;
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->request = new Zend_Controller_Request_Http();
$this->response = new Zend_Controller_Response_Cli();
$this->front = Zend_Controller_Front::getInstance();
$this->front->resetInstance();
$this->front->setRequest($this->request)->setResponse($this->response);
$this->viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$this->layout = Zend_Layout::startMvc();
}
示例14: 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();
}
Zend_Loader_Autoloader::resetInstance();
$this->autoloader = Zend_Loader_Autoloader::getInstance();
$this->application = new Zend_Application('testing');
$this->bootstrap = new ZfAppBootstrap($this->application);
Zend_Controller_Action_HelperBroker::resetHelpers();
}
示例15: 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_Controller_Action_Helper_ContextSwitchTest_LayoutOverride::resetMvcInstance();
Zend_Controller_Action_HelperBroker::resetHelpers();
$this->front = Zend_Controller_Front::getInstance();
$this->front->resetInstance();
$this->front->addModuleDirectory(dirname(__FILE__) . '/../../_files/modules');
$this->layout = Zend_Layout::startMvc();
$this->helper = new Zend_Controller_Action_Helper_ContextSwitch();
Zend_Controller_Action_HelperBroker::addHelper($this->helper);
$this->request = new Zend_Controller_Request_Http();
$this->response = new Zend_Controller_Response_Cli();
$this->front->setRequest($this->request)->setResponse($this->response)->addControllerDirectory(dirname(__FILE__));
$this->view = new Zend_View();
$this->viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$this->viewRenderer->setView($this->view);
$this->controller = new Zend_Controller_Action_Helper_ContextSwitchTestController($this->request, $this->response, array());
$this->controller->setupContexts();
$this->helper->setActionController($this->controller);
}