PHP Class RestTestCase

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Свойство Type Description
$capture_error_responses boolean Flag as to whether error responses should be captured or the exception thrown.
$client
$doc
$expected_response_code
$namespaces
$response
$schema

Méthodes publiques

Méthode Description
setUp ( )

Méthodes protégées

Méthode Description
assertResponseCode ( $code )
assertUrlEquals ( $expected, $actual )
assertXPathCount ( $count, $path )
assertXPathEquals ( $expected, $path )
assertXPathFound ( $path )
assertXPathRegExp ( $pattern, $path )
assertXmlEquals ( $xml )
delete ( $url, $headers = null )
get ( $url, $headers = null )
post ( $url, $body, $headers = null )
put ( $url, $body, $headers = null )
request ( $method, $url, $body = null, $headers = null )
setExpectedHttpError ( $code )
xPathEval ( $path )
xPathQuery ( $path )

Private Methods

Méthode Description
getXPath ( )

Method Details

assertResponseCode() protected méthode

protected assertResponseCode ( $code )

assertUrlEquals() protected méthode

protected assertUrlEquals ( $expected, $actual )

assertXPathCount() protected méthode

protected assertXPathCount ( $count, $path )

assertXPathEquals() protected méthode

protected assertXPathEquals ( $expected, $path )

assertXPathFound() protected méthode

protected assertXPathFound ( $path )

assertXPathRegExp() protected méthode

protected assertXPathRegExp ( $pattern, $path )

assertXmlEquals() protected méthode

protected assertXmlEquals ( $xml )

delete() protected méthode

protected delete ( $url, $headers = null )

get() protected méthode

protected get ( $url, $headers = null )

post() protected méthode

protected post ( $url, $body, $headers = null )

put() protected méthode

protected put ( $url, $body, $headers = null )

request() protected méthode

protected request ( $method, $url, $body = null, $headers = null )

setExpectedHttpError() protected méthode

protected setExpectedHttpError ( $code )

setUp() public méthode

public setUp ( )

xPathEval() protected méthode

protected xPathEval ( $path )

xPathQuery() protected méthode

protected xPathQuery ( $path )

Property Details

$capture_error_responses protected_oe property

Flag as to whether error responses should be captured or the exception thrown.
protected bool $capture_error_responses
Résultat boolean

$client protected_oe property

protected $client

$doc protected_oe property

protected $doc

$expected_response_code protected_oe property

protected $expected_response_code

$namespaces protected_oe static_oe property

protected static $namespaces

$response protected_oe property

protected $response

$schema protected_oe static_oe property

protected static $schema