Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
 /**
  * @return PHPUnit_Framework_MockObject_MockObject|Request
  */
 protected function getRequestMock()
 {
     if (!isset($this->requestMock)) {
         $this->requestMock = parent::getRequestMock();
         if ($this->sessionMock === false) {
             $this->requestMock->expects($this->never())->method('getSession');
         } else {
             $this->requestMock->expects($this->atLeastOnce())->method('getSession')->will($this->returnValue($this->getSessionMock()));
         }
         if ($this->route === false) {
             $this->requestMock->expects($this->never())->method('get');
         } else {
             $this->requestMock->expects($this->atLeastOnce())->method('get')->with('_route')->will($this->returnValue($this->route));
         }
     }
     return $this->requestMock;
 }
 /**
  * @return PHPUnit_Framework_MockObject_MockObject|GetResponseForExceptionEvent
  */
 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;
 }