PHP Class InterNations\Component\HttpMock\Tests\RequestCollectionFacadeTest

Inheritance: extends InterNations\Component\Testing\AbstractTestCase
Afficher le fichier Open project: internations/http-mock

Méthodes publiques

Méthode 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

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

Method Details

provideMethodAndUrls() public static méthode

public static provideMethodAndUrls ( )

setUp() public méthode

public setUp ( )

testRequestLatestResponseWithHttpAuth() public méthode

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

testRequestResponse_DeserializationError() public méthode

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

testRequestResponse_EmptyContentType() public méthode

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

testRequestResponse_InvalidContentType() public méthode

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

testRequestResponse_InvalidStatusCode() public méthode

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

testRequestingLatestRequest() public méthode

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