eZ\Bundle\EzPublishRestBundle\Tests\EventListener\RequestListenerTest::performFakeRequest PHP Method

performFakeRequest() protected method

protected performFakeRequest ( $uri, $type = HttpKernelInterface::MASTER_REQUEST ) : Request
return Symfony\Component\HttpFoundation\Request
    protected function performFakeRequest($uri, $type = HttpKernelInterface::MASTER_REQUEST)
    {
        $event = new GetResponseEvent($this->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface'), Request::create($uri), $type);
        $this->getEventListener()->onKernelRequest($event);
        return $event->getRequest();
    }