PHP Класс Phue\Test\Transport\HttpTest

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

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

Метод Описание
providerErrorTypes ( ) : array Provider: Error types
setUp ( ) Set up
testClientProperty ( ) Test: Client property
testCustomAdapter ( ) Test: Custom adapter
testGetDefaultAdapter ( ) Test: Get default adapter
testSendRequestArray ( ) Test: Send request with array response
testSendRequestBadContentType ( ) Test: Send request with bad content type
testSendRequestBadStatusCode ( ) Test: Send request with bad status code
testSendRequestErrorResponse ( ) Test: Send request with error response
testSendRequestSuccess ( ) Test: Send request with success resposne
testThrowExceptionByType ( $type, $exceptionName ) Test: Throw exception by type

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

Метод Описание
stubMockAdapterResponseMethods ( string $response, string $httpStatusCode, string $contentType ) Stub adapter response methods

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

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

Provider: Error types
public providerErrorTypes ( ) : array
Результат array

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

Set up
public setUp ( )

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

Stub adapter response methods
protected stubMockAdapterResponseMethods ( string $response, string $httpStatusCode, string $contentType )
$response string Response body
$httpStatusCode string Http status code
$contentType string Content type

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

Test: Client property
public testClientProperty ( )

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

Test: Custom adapter
public testCustomAdapter ( )

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

Test: Get default adapter

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

Test: Send request with array response

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

Test: Send request with bad content type

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

Test: Send request with bad status code

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

Test: Send request with error response

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

Test: Send request with success resposne

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

Test: Throw exception by type
public testThrowExceptionByType ( $type, $exceptionName )