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