示例#1
0
 /**
  * @param string $action
  */
 protected function executeControllerAction($action = null)
 {
     $actionMethod = $this->getControllerActionName($action);
     $this->controller->beforeExecute($action);
     $this->controller->{$actionMethod}();
     $this->controller->afterExecute();
 }
 /**
  * @throws InvalidArgumentException
  * @param string $name
  * @param mixed $arguments
  */
 public function __call($name, $arguments)
 {
     if (substr_count($name, 'Action') > 0) {
         throw new InvalidArgumentException('Action-Method was not found.');
     }
     return parent::__call($name, $arguments);
 }
示例#3
0
 public function testGetControllerName()
 {
     $this->assertEquals('Vmvc_Controller', $this->object->getControllerName());
 }
示例#4
0
 /**
  * @param Vmvc_Request $request
  * @param Vmvc_Response $response
  * @param ArrayObject $arrayObject
  */
 public function __construct(Vmvc_Request $request, Vmvc_Response $response, ArrayObject $arrayObject)
 {
     parent::__construct($request, $response);
     $this->arrayObject = $arrayObject;
 }