PHP Class InterNations\Component\HttpMock\Tests\RequestCollectionFacadeTest

Inheritance: extends InterNations\Component\Testing\AbstractTestCase
Datei anzeigen Open project: internations/http-mock

Public Methods

Method Description
provideMethodAndUrls ( )
setUp ( )
testRequestLatestResponseWithHttpAuth ( $method, $path, array $args = [], $httpMethod = 'get' )
testRequestResponse_DeserializationError ( $method, $path, array $args = [], $httpMethod = 'get' )
testRequestResponse_EmptyContentType ( $method, $path, array $args = [], $httpMethod = 'get' )
testRequestResponse_InvalidContentType ( $method, $path, array $args = [], $httpMethod = 'get' )
testRequestResponse_InvalidStatusCode ( $method, $path, array $args = [], $httpMethod = 'get' )
testRequestingLatestRequest ( $method, $path, array $args = [], $httpMethod = 'get' )

Private Methods

Method Description
createComplexResponse ( )
createResponseThatCannotBeDeserialized ( )
createResponseWithEmptyContentType ( )
createResponseWithInvalidContentType ( )
createResponseWithInvalidStatusCode ( )
createSimpleResponse ( )
mockClient ( $path, Guzzle\Http\Message\Response $response, $method )

Method Details

provideMethodAndUrls() public static method

public static provideMethodAndUrls ( )

setUp() public method

public setUp ( )

testRequestLatestResponseWithHttpAuth() public method

public testRequestLatestResponseWithHttpAuth ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array

testRequestResponse_DeserializationError() public method

public testRequestResponse_DeserializationError ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array

testRequestResponse_EmptyContentType() public method

public testRequestResponse_EmptyContentType ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array

testRequestResponse_InvalidContentType() public method

public testRequestResponse_InvalidContentType ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array

testRequestResponse_InvalidStatusCode() public method

public testRequestResponse_InvalidStatusCode ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array

testRequestingLatestRequest() public method

public testRequestingLatestRequest ( $method, $path, array $args = [], $httpMethod = 'get' )
$args array