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


PHP Zend_Test_PHPUnit_ControllerTestCase::dispatch方法代碼示例

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


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

示例1: dispatch

 public function dispatch($url = null)
 {
     // removing this helper solves issues with multiple redirects in one test
     // a fresh instance of helper is registered anyway
     Zend_Controller_Action_HelperBroker::removeHelper('redirector');
     //         Zend_Controller_Action_HelperBroker::removeHelper('flashMessenger');
     parent::dispatch($url);
 }
開發者ID:lukaszjankowski,項目名稱:alchemy,代碼行數:8,代碼來源:ControllerTestCase.php

示例2: dispatch

 /**
  * Overwritten to toss exceptions in your face, so developers don't have to inspect the
  * HTML response to see what went wrong.
  * We'll skip Zend_Controller_Action_Exceptions though, because they actually provide semantic
  * meaning to response. For instance, you can use them to adjust the HTTP status code, which is
  * actually a valid response to these exception.
  * This method should throw only unexpected exceptions that need fixing right away.
  */
 public function dispatch($url = null)
 {
     $response = parent::dispatch($url);
     if (!$this->getResponse()->isException()) {
         return $response;
     }
     foreach ($this->getResponse()->getException() as $exp) {
         if (!$exp instanceof Zend_Controller_Action_Exception) {
             throw $exp;
         }
     }
     return $response;
 }
開發者ID:grrr-amsterdam,項目名稱:garp3,代碼行數:21,代碼來源:ControllerTestCase.php

示例3: dispatch

 public function dispatch($url = null)
 {
     $this->getFrontController()->setParam('bootstrap', $this->_application->getBootstrap());
     parent::dispatch($url);
 }
開發者ID:rantoine,項目名稱:AdvisorIllustrator,代碼行數:5,代碼來源:ControllerTestCase.php

示例4: dispatch

 /**
  * @internal Overrides the parent behavior to enable automatic throwing of
  * exceptions from dispatching.
  * @param string $url
  * @param boolean $throwExceptions
  * @return void
  */
 public function dispatch($url = null, $throwExceptions = true)
 {
     parent::dispatch($url);
     if ($throwExceptions) {
         if (isset($this->request->error_handler)) {
             throw $this->request->error_handler->exception;
         }
     }
 }
開發者ID:lchen01,項目名稱:STEdwards,代碼行數:16,代碼來源:AppTestCase.php

示例5: dispatch

 public function dispatch($url)
 {
     parent::dispatch($url);
 }
開發者ID:rodrigorm,項目名稱:godeploy,代碼行數:4,代碼來源:ControllerTestCase.php


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