protected function getExceptionEventMock() { if (!isset($this->eventMock)) { $this->eventMock = parent::getEventMock('Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent'); $this->eventMock->expects($this->any())->method('getException')->will($this->returnValue($this->eventValue)); } return $this->eventMock; }