You are here

private function StackedHttpKernelTest::getHttpKernelMock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php \Stack\StackedHttpKernelTest::getHttpKernelMock()
2 calls to StackedHttpKernelTest::getHttpKernelMock()
StackedHttpKernelTest::handleShouldDelegateToApp in vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php
@test
StackedHttpKernelTest::handleShouldStillDelegateToAppWithMiddlewares in vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php
@test

File

vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php, line 65

Class

StackedHttpKernelTest

Namespace

Stack

Code

private function getHttpKernelMock(Response $response) {
  $app = $this
    ->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $app
    ->expects($this
    ->any())
    ->method('handle')
    ->with($this
    ->isInstanceOf('Symfony\\Component\\HttpFoundation\\Request'))
    ->will($this
    ->returnValue($response));
  return $app;
}