Class LegacyRequestDispatcher
Dispatches a request capturing the response for integration testing purposes into the Routing\Dispatcher stack.
Namespace: Cake\TestSuite
Property Summary
-
$_test protected
Cake\TestSuite\IntegrationTestCase
Method Summary
-
__construct() public
Constructor
-
execute() public
Run a request and get the response.
Method Detail
__construct() ¶ public
__construct(Cake\TestSuite\IntegrationTestCase $test)
Constructor
Parameters
-
Cake\TestSuite\IntegrationTestCase
$test The test case to run.
execute() ¶ public
execute(array $request): string|null
Run a request and get the response.
Parameters
-
array
$request The request context to execute.
Returns
string|null