Example #1
0
 public function setApp()
 {
     View::reset();
     View::useLib('MockTest');
     View::conf($this->toupticonf['viewConf']);
     MocktestView::useLib($this->toupticonf['view'] . 'View');
     Controller::setResponse($this->response);
     Controller::setRequest($this->request);
     $this->app = new MiddlewareStack();
     $this->toupti = new Toupti($this->toupticonf['toupti']);
     $this->app->add($this->toupti);
 }
Example #2
0
File: view.php Project: AF83/toupti
 public function reset()
 {
     self::$view_class = NULL;
     self::$conf = NULL;
 }