Class BaseWebTest.
Base class for web functional tests.
package |
Default |
---|
_boot()
Throws |
|
---|
_unBoot()
author |
Donii Sergii doniysa@gmail.com |
---|---|
Throws |
|
checkTraits(string $prefix = '')
author |
Donii Sergii doniysa@gmail.com |
---|---|
Throws |
|
string
Method name prefix
clear()
createApplication()
delete(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
string
The URI to fetch
array
The Request parameters
array
The files
array
The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
string
The raw body data
boolean
Whether to update the history or not (only used internally for back(), forward(), and reload())
$this
downMigrationTrait()
author |
Donii Sergii doniysa@gmail.com |
---|---|
Throws |
|
get(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
string
The URI to fetch
array
The Request parameters
array
The files
array
The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
string
The raw body data
boolean
Whether to update the history or not (only used internally for back(), forward(), and reload())
$this
getAllowRedirect() : boolean|integer
getAppClass() : \sonrac\FCoverage\TestApplication
getConnection() : \Doctrine\DBAL\Connection
getCountRedirects() : integer
getResponseObject() : \Symfony\Component\HttpFoundation\Response|null
incrementCountRedirects()
author |
Donii Sergii doniysa@gmail.com |
---|---|
initInitMigrationAppTrait()
author |
Donii Sergii doniysa@gmail.com |
---|---|
Throws |
|
isClearCountRedirects() : boolean
isThrowExceptionOnRedirect() : boolean
patch(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
string
The URI to fetch
array
The Request parameters
array
The files
array
The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
string
The raw body data
boolean
Whether 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
string
The URI to fetch
array
The Request parameters
array
The files
array
The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
string
The raw body data
boolean
Whether to update the history or not (only used internally for back(), forward(), and reload())
$this
prepareMigrations()
author |
Donii Sergii doniysa@gmail.com |
---|---|
put(string $uri, array $parameters = array(), array $files = array(), array $server = array(), string $content = null, boolean $changeHistory = true) : $this
string
The URI to fetch
array
The Request parameters
array
The files
array
The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
string
The raw body data
boolean
Whether 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
string
The request method
string
The URI to fetch
array
The Request parameters
array
The files
array
The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
string
The raw body data
boolean
Whether 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 |
|
string
Table name.
array|string
Where condition.
$this
seeJsonStructure(array $struct, array $data = null) : $this
array
array
$this
seeStatusCode(integer $statusCode) : $this
Throws |
|
---|
integer
$this
setAllowRedirect(boolean|integer $allowRedirect)
setApplication(\Silex\Application $app)
setClearCountRedirects(boolean $clear) : $this
setCountRedirects(integer $_countRedirects)
setThrowExceptionOnRedirect(boolean $throwExceptionOnRedirect)
setUp()
Throws |
|
---|
setUpBeforeClass()
Throws |
|
---|
tearDown()
Throws |
|
---|
tearDownAfterClass()
Throws |
|
---|
client : null|\Symfony\Component\HttpKernel\Client
var |
---|
null|\Symfony\Component\HttpKernel\Client
response : null|\Symfony\Component\HttpFoundation\Response
var |
---|
null|\Symfony\Component\HttpFoundation\Response
crawler : null|\Symfony\Component\DomCrawler\Crawler
var |
---|
null|\Symfony\Component\DomCrawler\Crawler
allowRedirect : boolean|integer
throwExceptionOnRedirect : boolean
clearCountRedirects : boolean
countRedirects : integer
runMigration : boolean