class TerminableKernelSpy in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/stack/builder/tests/unit/Stack/StackedHttpKernelTest.php \Stack\TerminableKernelSpy
Hierarchy
- class \Stack\KernelSpy implements HttpKernelInterface
- class \Stack\TerminableKernelSpy implements TerminableInterface
Expanded class hierarchy of TerminableKernelSpy
File
- vendor/
stack/ builder/ tests/ unit/ Stack/ StackedHttpKernelTest.php, line 138
Namespace
StackView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant | |||
KernelSpy:: |
private | property | ||
KernelSpy:: |
public | function |
Handles a Request to convert it to a Response. Overrides HttpKernelInterface:: |
|
KernelSpy:: |
public | function | ||
KernelSpy:: |
public | function | ||
TerminableKernelSpy:: |
private | property | ||
TerminableKernelSpy:: |
public | function |
Terminates a request/response cycle. Overrides TerminableInterface:: |
|
TerminableKernelSpy:: |
public | function |