private function generateExceptionEvent(Exception $exception) { return new GetResponseForExceptionEvent($this->getMock('\\Symfony\\Component\\HttpKernel\\HttpKernelInterface'), new Request(), 'master', $exception); }