You are here

private function BuilderTest::getTerminableMock in Zircon Profile 8

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

File

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

Class

BuilderTest
@covers Stack\Builder

Namespace

Stack

Code

private function getTerminableMock() {
  $app = $this
    ->getMock('Stack\\TerminableHttpKernel');
  $app
    ->expects($this
    ->once())
    ->method('terminate')
    ->with($this
    ->isInstanceOf('Symfony\\Component\\HttpFoundation\\Request'), $this
    ->isInstanceOf('Symfony\\Component\\HttpFoundation\\Response'));
  return $app;
}