You are here

class TerminableKernelSpy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php \Stack\TerminableKernelSpy

Hierarchy

Expanded class hierarchy of TerminableKernelSpy

File

vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php, line 138

Namespace

Stack
View source
class TerminableKernelSpy extends KernelSpy implements TerminableInterface {
  private $terminateCallCount = 0;
  public function terminate(Request $request, Response $response) {
    $this->terminateCallCount++;
    if ($this->kernel && $this->kernel instanceof TerminableInterface) {
      return $this->kernel
        ->terminate($request, $response);
    }
  }
  public function terminateCallCount() {
    return $this->terminateCallCount;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant
KernelSpy::$handleCallCount private property
KernelSpy::handle public function Handles a Request to convert it to a Response. Overrides HttpKernelInterface::handle
KernelSpy::handleCallCount public function
KernelSpy::__construct public function
TerminableKernelSpy::$terminateCallCount private property
TerminableKernelSpy::terminate public function Terminates a request/response cycle. Overrides TerminableInterface::terminate
TerminableKernelSpy::terminateCallCount public function