PHP Класс RestTestCase

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
setUp ( )

Защищенные методы

Метод Описание
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 )

Приватные методы

Метод Описание
getXPath ( )

Описание методов

assertResponseCode() защищенный Метод

protected assertResponseCode ( $code )

assertUrlEquals() защищенный Метод

protected assertUrlEquals ( $expected, $actual )

assertXPathCount() защищенный Метод

protected assertXPathCount ( $count, $path )

assertXPathEquals() защищенный Метод

protected assertXPathEquals ( $expected, $path )

assertXPathFound() защищенный Метод

protected assertXPathFound ( $path )

assertXPathRegExp() защищенный Метод

protected assertXPathRegExp ( $pattern, $path )

assertXmlEquals() защищенный Метод

protected assertXmlEquals ( $xml )

delete() защищенный Метод

protected delete ( $url, $headers = null )

get() защищенный Метод

protected get ( $url, $headers = null )

post() защищенный Метод

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

put() защищенный Метод

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

request() защищенный Метод

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

setExpectedHttpError() защищенный Метод

protected setExpectedHttpError ( $code )

setUp() публичный Метод

public setUp ( )

xPathEval() защищенный Метод

protected xPathEval ( $path )

xPathQuery() защищенный Метод

protected xPathQuery ( $path )

Описание свойств

$capture_error_responses защищенное свойство

Flag as to whether error responses should be captured or the exception thrown.
protected bool $capture_error_responses
Результат boolean

$client защищенное свойство

protected $client

$doc защищенное свойство

protected $doc

$expected_response_code защищенное свойство

protected $expected_response_code

$namespaces защищенное статическое свойство

protected static $namespaces

$response защищенное свойство

protected $response

$schema защищенное статическое свойство

protected static $schema