當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Controller_Action_HelperBroker::getExistingHelpers方法代碼示例

本文整理匯總了PHP中Zend_Controller_Action_HelperBroker::getExistingHelpers方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Controller_Action_HelperBroker::getExistingHelpers方法的具體用法?PHP Zend_Controller_Action_HelperBroker::getExistingHelpers怎麽用?PHP Zend_Controller_Action_HelperBroker::getExistingHelpers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Controller_Action_HelperBroker的用法示例。


在下文中一共展示了Zend_Controller_Action_HelperBroker::getExistingHelpers方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testActionHelpersAreResetted

 /**
  * Checks if the action helpers are cleaned up correctly after
  * each test.
  */
 public function testActionHelpersAreResetted()
 {
     $previousHelpers = Zend_Controller_Action_HelperBroker::getExistingHelpers();
     $test = $this->createTestCase('testAddActionHelper');
     $result = $test->run();
     $this->assertSuccessful($result);
     $currentHelpers = Zend_Controller_Action_HelperBroker::getExistingHelpers();
     $this->assertEquals($previousHelpers, $currentHelpers);
 }
開發者ID:matthimatiker,項目名稱:molcomponents,代碼行數:13,代碼來源:WebControllerTestCaseExternalTest.php

示例2: testResetInstanceShouldResetHelperBroker

 /**
  * @see ZF-3145
  */
 public function testResetInstanceShouldResetHelperBroker()
 {
     Zend_Controller_Action_HelperBroker::addHelper(new Zend_Controller_Action_Helper_ViewRenderer());
     Zend_Controller_Action_HelperBroker::addHelper(new Zend_Controller_Action_Helper_Url());
     $helpers = Zend_Controller_Action_HelperBroker::getExistingHelpers();
     $this->assertTrue(is_array($helpers));
     $this->assertFalse(empty($helpers));
     $this->_controller->resetInstance();
     $helpers = Zend_Controller_Action_HelperBroker::getExistingHelpers();
     $this->assertTrue(is_array($helpers));
     $this->assertTrue(empty($helpers));
 }
開發者ID:lortnus,項目名稱:zf1,代碼行數:15,代碼來源:FrontTest.php

示例3: testGetHelperStatically

 public function testGetHelperStatically()
 {
     $helper = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
     $this->assertTrue($helper instanceof Zend_Controller_Action_Helper_ViewRenderer);
     $helpers = Zend_Controller_Action_HelperBroker::getExistingHelpers();
     $this->assertTrue(is_array($helpers));
     $this->assertEquals(1, count($helpers));
 }
開發者ID:travisj,項目名稱:zf,代碼行數:8,代碼來源:HelperBrokerTest.php

示例4: storeActionHelpers

 /**
  * Sets up the action helpers.
  */
 protected function storeActionHelpers()
 {
     $this->previousActionHelpers = Zend_Controller_Action_HelperBroker::getExistingHelpers();
     Zend_Controller_Action_HelperBroker::resetHelpers();
 }
開發者ID:matthimatiker,項目名稱:molcomponents,代碼行數:8,代碼來源:WebControllerTestCase.php


注:本文中的Zend_Controller_Action_HelperBroker::getExistingHelpers方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。