private function BuilderTest::getHttpKernelMock in Zircon Profile 8
Same name and namespace in other branches
- 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
File
- vendor/
stack/ builder/ tests/ unit/ Stack/ BuilderTest.php, line 152
Class
- BuilderTest
- @covers Stack\Builder
Namespace
StackCode
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;
}