Exemplo n.º 1
0
 /**
  * Setup
  */
 public function setUp()
 {
     $this->setFormManager(new \StrokerForm\FormManager());
     $this->controller = new AjaxController($this->getFormManager());
     $this->request = new Request();
     $this->response = new Response();
     $controllerName = strtolower(str_replace('Controller', '', get_class($this->controller)));
     $this->routeMatch = new RouteMatch(array('controller' => $controllerName));
     $this->event = new MvcEvent();
     $this->event->setRouteMatch($this->routeMatch);
     $this->controller->setEvent($this->event);
 }