PHP Class RestTestCase

Inheritance: extends PHPUnit_Framework_TestCase
ファイルを表示 Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Property 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

Public Methods

Method Description
setUp ( )

Protected Methods

Method 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

Method Description
getXPath ( )

Method Details

assertResponseCode() protected method

protected assertResponseCode ( $code )

assertUrlEquals() protected method

protected assertUrlEquals ( $expected, $actual )

assertXPathCount() protected method

protected assertXPathCount ( $count, $path )

assertXPathEquals() protected method

protected assertXPathEquals ( $expected, $path )

assertXPathFound() protected method

protected assertXPathFound ( $path )

assertXPathRegExp() protected method

protected assertXPathRegExp ( $pattern, $path )

assertXmlEquals() protected method

protected assertXmlEquals ( $xml )

delete() protected method

protected delete ( $url, $headers = null )

get() protected method

protected get ( $url, $headers = null )

post() protected method

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

put() protected method

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

request() protected method

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

setExpectedHttpError() protected method

protected setExpectedHttpError ( $code )

setUp() public method

public setUp ( )

xPathEval() protected method

protected xPathEval ( $path )

xPathQuery() protected method

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
return 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