class TestSessionHTTPMiddleware implements HTTPMiddleware (View source)

Sets state previously initialized through TestSessionController.

Properties

protected TestSessionEnvironment $testSessionEnvironment

Methods

public
__construct()

No description

public
process(HTTPRequest $request, callable $delegate)

Generate response for the given request

protected
loadTestState(HTTPRequest $request)

Load test state from environment into "real" environment

protected
restoreTestState(HTTPRequest $request)

No description

Details

__construct()

No description

HTTPResponse process(HTTPRequest $request, callable $delegate)

Generate response for the given request

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse

protected loadTestState(HTTPRequest $request)

Load test state from environment into "real" environment

Parameters

HTTPRequest $request

protected restoreTestState(HTTPRequest $request)

No description

Parameters

HTTPRequest $request