You are here

public function BuilderTest::resolvedKernelShouldDelegateTerminateCalls in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/tests/unit/Stack/BuilderTest.php \Stack\BuilderTest::resolvedKernelShouldDelegateTerminateCalls()

@test

File

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

Class

BuilderTest
@covers Stack\Builder

Namespace

Stack

Code

public function resolvedKernelShouldDelegateTerminateCalls() {
  $app = $this
    ->getTerminableMock();
  $stack = new Builder();
  $resolved = $stack
    ->resolve($app);
  $request = Request::create('/');
  $response = new Response('ok');
  $resolved
    ->handle($request);
  $resolved
    ->terminate($request, $response);
}