FileAccess Orion

Client extends AbstractBrowser
in package

Client simulates a browser and makes requests to an HttpKernel instance.

Tags
deprecated

since Symfony 4.3, use HttpKernelBrowser instead.

Table of Contents

$kernel  : mixed
$catchExceptions  : mixed
__construct()  : mixed
catchExceptions()  : mixed
Sets whether to catch exceptions when the kernel is handling a request.
getRequest()  : Request
getResponse()  : Response
doRequest()  : Response
Makes a request.
filterFiles()  : array<string|int, mixed>
Filters an array of files.
filterRequest()  : Request
Converts the BrowserKit request to a HttpKernel request.
filterResponse()  : Response
Converts the HttpKernel response to a BrowserKit response.
getHandleScript()  : mixed
getScript()  : string
Returns the script to execute when the request must be insulated.

Properties

$catchExceptions

private mixed $catchExceptions = true

Methods

__construct()

public __construct(HttpKernelInterface $kernel[, array<string|int, mixed> $server = [] ][, History $history = null ][, CookieJar $cookieJar = null ]) : mixed
Parameters
$kernel : HttpKernelInterface
$server : array<string|int, mixed> = []

The server parameters (equivalent of $_SERVER)

$history : History = null
$cookieJar : CookieJar = null
Return values
mixed

catchExceptions()

Sets whether to catch exceptions when the kernel is handling a request.

public catchExceptions(bool $catchExceptions) : mixed
Parameters
$catchExceptions : bool

Whether to catch exceptions

Return values
mixed

doRequest()

Makes a request.

protected doRequest(mixed $request) : Response
Parameters
$request : mixed
Return values
Response

A Response instance

filterFiles()

Filters an array of files.

protected filterFiles(array<string|int, mixed> $files) : array<string|int, mixed>

This method created test instances of UploadedFile so that the move() method can be called on those instances.

If the size of a file is greater than the allowed size (from php.ini) then an invalid UploadedFile is returned with an error set to UPLOAD_ERR_INI_SIZE.

Parameters
$files : array<string|int, mixed>
Tags
see
UploadedFile
Return values
array<string|int, mixed>

An array with all uploaded files marked as already moved

filterRequest()

Converts the BrowserKit request to a HttpKernel request.

protected filterRequest(Request $request) : Request
Parameters
$request : Request
Return values
Request

A Request instance

filterResponse()

Converts the HttpKernel response to a BrowserKit response.

protected filterResponse(mixed $response) : Response
Parameters
$response : mixed
Return values
Response

A DomResponse instance

getHandleScript()

protected getHandleScript() : mixed
Return values
mixed

getScript()

Returns the script to execute when the request must be insulated.

protected getScript(mixed $request) : string
Parameters
$request : mixed
Return values
string

Search results