Scheb\TwoFactorBundle\Tests\Security\TwoFactor\EventListener\RequestListenerTest::createEvent PHP Method

createEvent() private method

private createEvent ( $pathInfo = '/some-path/' ) : PHPUnit_Framework_MockObject_MockObject
return PHPUnit_Framework_MockObject_MockObject
    private function createEvent($pathInfo = '/some-path/')
    {
        $this->request = $this->createMock('Symfony\\Component\\HttpFoundation\\Request');
        $this->request->expects($this->any())->method('getPathInfo')->willReturn($pathInfo);
        $event = $this->createMock('Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent');
        $event->expects($this->any())->method('getRequest')->willReturn($this->request);
        return $event;
    }