public function StackedHttpKernelTest::handleShouldDelegateToApp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php \Stack\StackedHttpKernelTest::handleShouldDelegateToApp()
@test
File
- vendor/
stack/ builder/ tests/ unit/ Stack/ StackedHttpKernelTest.php, line 13
Class
Namespace
StackCode
public function handleShouldDelegateToApp() {
$app = $this
->getHttpKernelMock(new Response('ok'));
$kernel = new StackedHttpKernel($app, array(
$app,
));
$request = Request::create('/');
$response = $kernel
->handle($request);
$this
->assertSame('ok', $response
->getContent());
}