Trait ControllersTestTrait
Controllers test trait.
| author |
Donii Sergii doniysa@gmail.com |
|---|---|
| package |
Default |
clear()
delete(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
stringThe URI to fetch
arrayThe Request parameters
arrayThe files
arrayThe server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
stringThe raw body data
booleanWhether to update the history or not (only used internally for back(), forward(), and reload())
$this
get(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
stringThe URI to fetch
arrayThe Request parameters
arrayThe files
arrayThe server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
stringThe raw body data
booleanWhether to update the history or not (only used internally for back(), forward(), and reload())
$this
getAllowRedirect() : boolean|integer
getConnection() : \Doctrine\DBAL\Connection
getCountRedirects() : integer
getResponseObject() : \Symfony\Component\HttpFoundation\Response|null
isClearCountRedirects() : boolean
isThrowExceptionOnRedirect() : boolean
patch(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
stringThe URI to fetch
arrayThe Request parameters
arrayThe files
arrayThe server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
stringThe raw body data
booleanWhether to update the history or not (only used internally for back(), forward(), and reload())
$this
post(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
stringThe URI to fetch
arrayThe Request parameters
arrayThe files
arrayThe server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
stringThe raw body data
booleanWhether to update the history or not (only used internally for back(), forward(), and reload())
$this
put(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
stringThe URI to fetch
arrayThe Request parameters
arrayThe files
arrayThe server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
stringThe raw body data
booleanWhether to update the history or not (only used internally for back(), forward(), and reload())
$this
request(string $method, string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
stringThe request method
stringThe URI to fetch
arrayThe Request parameters
arrayThe files
arrayThe server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
stringThe raw body data
booleanWhether to update the history or not (only used internally for back(), forward(), and reload())
$this
seeCountInTable(string $table, integer $count, array|null $params = null) : $this
| author |
Donii Sergii doniysa@gmail.com |
|---|
string
integer
array|null
$this
seeHeader(string $header, null $value = null) : $this
string
null
$this
seeInDatabase(string $table, array|string $condition) : $this
| author |
Donii Sergii doniysa@gmail.com |
|---|---|
| Throws |
|
stringTable name.
array|stringWhere condition.
$this
seeJsonStructure(array $struct, array $data = null) : $this
array
array
$this
seeStatusCode(integer $statusCode) : $this
| Throws |
|
|---|
integer
$this
setAllowRedirect(boolean|integer $allowRedirect)
setClearCountRedirects(boolean $clear) : $this
setCountRedirects(integer $_countRedirects)
setThrowExceptionOnRedirect(boolean $throwExceptionOnRedirect)
allowRedirect : boolean|integer
throwExceptionOnRedirect : boolean
clearCountRedirects : boolean
countRedirects : integer