You are here

private function RouterListenerTest::createGetResponseEventForUri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/EventListener/RouterListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\RouterListenerTest::createGetResponseEventForUri()

Parameters

string $uri:

Return value

GetResponseEvent

1 call to RouterListenerTest::createGetResponseEventForUri()
RouterListenerTest::testPort in vendor/symfony/http-kernel/Tests/EventListener/RouterListenerTest.php
@dataProvider getPortData

File

vendor/symfony/http-kernel/Tests/EventListener/RouterListenerTest.php, line 69

Class

RouterListenerTest

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

private function createGetResponseEventForUri($uri) {
  $kernel = $this
    ->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $request = Request::create($uri);
  $request->attributes
    ->set('_controller', null);

  // Prevents going in to routing process
  return new GetResponseEvent($kernel, $request, HttpKernelInterface::MASTER_REQUEST);
}