public function afterException($controller, $methodName, \Exception $exception) { self::$afterExceptionCalled++; $this->afterExceptionOrder = self::$afterExceptionCalled; $this->controller = $controller; $this->methodName = $methodName; $this->exception = $exception; parent::afterException($controller, $methodName, $exception); }
public function testAfterExceptionRaiseAgainWhenUnhandled() { $this->setExpectedException('Exception'); $afterEx = $this->middleware->afterException($this->controller, null, $this->exception); }