\Cake\TestSuiteLegacyRequestDispatcher

Dispatches a request capturing the response for integration testing purposes into the Routing\Dispatcher stack.

Summary

Methods
Properties
Constants
__construct()
resolveUrl()
execute()
No public properties found
No constants found
No protected methods found
$_test
N/A
No private methods found
No private properties found
N/A

Properties

Methods

resolveUrl()

resolveUrl(array|string  $url) : string

Resolve the user provided URL into the actual request URL.

Parameters

array|string $url

The URL array/string to resolve.

Returns

string

execute()

execute(array  $request) : string|null

Run a request and get the response.

Parameters

array $request

The request context to execute.

Returns

string|null —

The generated response.