/** * @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); }
public function testGetControllerName() { $this->assertEquals('Vmvc_Controller', $this->object->getControllerName()); }
/** * @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; }