eZ\Bundle\EzPublishRestBundle\Tests\EventListener\CsrfListenerTest::getEventMock PHP Метод

getEventMock() защищенный Метод

protected getEventMock ( $class = null ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | GetResponseEvent
Результат PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Symfony\Component\HttpKernel\Event\GetResponseEvent
    protected function getEventMock($class = null)
    {
        if (!isset($this->eventMock)) {
            parent::getEventMock('Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent');
            $this->eventMock->expects($this->any())->method('getRequestType')->will($this->returnValue($this->requestType));
        }
        return $this->eventMock;
    }