Property | Type | Description | |
---|---|---|---|
$app | Application\Tests\BootstrapTest | Application entity |
Method | Description | |
---|---|---|
assertArrayHasKeyAndSize ( array | ArrayObject $array, string $key, integer $size, string $message = null ) | Assert Array Key has Size | |
assertArrayHasSize ( array | ArrayObject $array, integer $size, string $message = null ) | Assert Array Size | |
assertEqualsArray ( array $expected, array $actual, string $message = null ) | Assert one-level Arrays is Equals | |
getApp ( ) : BootstrapTest | Get Application instance | |
prepareRequest ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | |
Set new Request instance | |
resetApp ( ) | Reset layout and Request | |
resetGlobals ( ) | Reset super-globals variables | |
setRequestParams ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | |
Set new Request instance | |
setUp ( ) | Setup TestCase | |
tearDown ( ) | Tear Down |
protected static getApp ( ) : BootstrapTest | ||
return | BootstrapTest |
protected prepareRequest ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | |
||
$path | string | Path part of URI http://host/module/controller/path |
$query | array | $_GET params |
$params | array | $_POST params |
$method | string | HTTP method |
$headers | array | HTTP headers |
return | Psr\Http\Message\ServerRequestInterface | |
protected static resetGlobals ( ) |
protected setRequestParams ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | |
||
$path | string | Path part of URI http://host/module/controller/path |
$query | array | $_GET params |
$params | array | $_POST params |
$method | string | HTTP method |
$headers | array | HTTP headers |
return | Psr\Http\Message\ServerRequestInterface | |