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