/** * invoke method * * @param mixed $controller * @param mixed $request * @return void */ protected function _invoke(Controller $controller, CakeRequest $request) { if ($result = parent::_invoke($controller, $request)) { if ($result[0] === 'missingAction') { return $result; } } return $controller; }
/** * invoke method * * @param mixed $controller * @param mixed $params * @param mixed $missingAction * @access protected * @return void */ function _invoke(&$controller, $params) { restore_error_handler(); if ($result = parent::_invoke($controller, $params)) { if ($result[0] === 'missingAction') { return $result; } } set_error_handler('simpleTestErrorHandler'); return $controller; }
/** * invoke method * * @param Controller $controller * @param array $params * @param boolean $missingAction * @return Controller * @access protected */ function _invoke(&$controller, $params, $missingAction = false) { $this->controller =& $controller; if (isset($this->testCase) && method_exists($this->testCase, 'startController')) { $this->testCase->startController($this->controller, $params); } $result = parent::_invoke($this->controller, $params, $missingAction); if (isset($this->testCase) && method_exists($this->testCase, 'endController')) { $this->testCase->endController($this->controller, $params); } return $result; }
/** * invoke method * * @param Controller $controller * @param CakeRequest $request * @return CakeResponse */ protected function _invoke(Controller $controller, CakeRequest $request) { $this->controller = $controller; return parent::_invoke($controller, $request); }
/** * invoke method * * @param mixed $controller * @param mixed $request * @return void */ protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) { $result = parent::_invoke($controller, $request, $response); return $controller; }