TestCase
extends TestCase
in package
uses
FixturePath
AbstractYes
Table of Contents
Properties
- $session : mixed
Methods
- assertLocationHeader() : mixed
- createRequest() : ServerRequestInterface
- getAppInstance() : App
- getSession() : Session
- setUp() : void
Properties
$session
private
mixed
$session
Methods
assertLocationHeader()
protected
assertLocationHeader(mixed $expectedLocation, ResponseInterface $response[, string $message = "" ]) : mixed
Parameters
- $expectedLocation : mixed
- $response : ResponseInterface
- $message : string = ""
createRequest()
protected
createRequest(string $method, string $path[, array<string|int, mixed> $headers = ["HTTP_ACCEPT" => "application/json"] ][, array<string|int, mixed>|null $body = null ][, array<string|int, mixed> $cookies = [] ][, array<string|int, mixed> $serverParams = [] ]) : ServerRequestInterface
Parameters
- $method : string
- $path : string
- $headers : array<string|int, mixed> = ["HTTP_ACCEPT" => "application/json"]
- $body : array<string|int, mixed>|null = null
- $cookies : array<string|int, mixed> = []
- $serverParams : array<string|int, mixed> = []
Return values
ServerRequestInterfacegetAppInstance()
protected
getAppInstance() : App
Return values
AppgetSession()
protected
getSession() : Session
Return values
SessionsetUp()
protected
setUp() : void