public function afterController($controller, $methodName, Response $response)
 {
     self::$afterControllerCalled++;
     $this->afterControllerOrder = self::$afterControllerCalled;
     $this->controller = $controller;
     $this->methodName = $methodName;
     $this->response = $response;
     return parent::afterController($controller, $methodName, $response);
 }
Esempio n. 2
0
 public function testAfterControllerReturnResponseWhenUnhandled()
 {
     $response = $this->middleware->afterController($this->controller, null, $this->response);
     $this->assertEquals($this->response, $response);
 }