protected function setUp() { $this->console = $this->getMockOfConsole(); $this->controller = new IndexController(); $this->event = new MvcEvent(); $this->request = new Request(); $this->response = new Response(); $this->routeMatch = new RouteMatch(array('controller' => 'index')); $this->controller->setConsole($this->console); $this->controller->setEvent($this->event); $this->event->setRequest($this->request); $this->event->setResponse($this->response); $this->event->setRouteMatch($this->routeMatch); }