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);
 }
 function setResponse($response)
 {
     parent::setResponse($response);
 }
Example #3
0
 /**
  * test getResponse() method
  *
  * @test
  */
 public function getResponse()
 {
     $this->generateComponent();
     $this->Api->setResponse(['very' => ['deep' => ['array' => ['test']]]]);
     $this->assertSame('test', $this->Api->getResponse('very.deep.array.0'));
 }