You are here

private function BuilderTest::getHttpKernelMock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/tests/unit/Stack/BuilderTest.php \Stack\BuilderTest::getHttpKernelMock()
6 calls to BuilderTest::getHttpKernelMock()
BuilderTest::appendMiddlewareShouldAppendToBody in vendor/stack/builder/tests/unit/Stack/BuilderTest.php
@test
BuilderTest::resolveShouldCallSpecFactories in vendor/stack/builder/tests/unit/Stack/BuilderTest.php
@test
BuilderTest::resolveShouldPassPushArgumentsToMiddlewareConstructor in vendor/stack/builder/tests/unit/Stack/BuilderTest.php
@test
BuilderTest::stackedMiddlewaresShouldWrapInReverseOrder in vendor/stack/builder/tests/unit/Stack/BuilderTest.php
@test
BuilderTest::unshiftMiddlewareShouldPutMiddlewareBeforePushed in vendor/stack/builder/tests/unit/Stack/BuilderTest.php
@test

... See full list

File

vendor/stack/builder/tests/unit/Stack/BuilderTest.php, line 152

Class

BuilderTest
@covers Stack\Builder

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;
}