class TestCase extends TestCase

Properties

$app

Methods

void
setUp()

No description

request(string $uri, string $method = 'GET', array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)

Creates a Request based on a given URI and configuration.

get(string $uri, array $headers = [])

No description

Details

at line 14
void setUp()

Return Value

void

at line 37
TestCase request(string $uri, string $method = 'GET', array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)

Creates a Request based on a given URI and configuration.

The information contained in the URI always take precedence over the other information (server and parameters).

Parameters

string $uri The URI
string $method The HTTP method
array $parameters The query (GET) or request (POST) parameters
array $cookies The request cookies ($_COOKIE)
array $files The request files ($_FILES)
array $server The server parameters ($_SERVER)
string|resource|null $content The raw body data

Return Value

TestCase

at line 56
get(string $uri, array $headers = [])

Parameters

string $uri
array $headers