Class ResponseValidator
HTTP response validator helper class.
Methods summary
public
|
#
__construct(
Constructs a response validator instance. |
public
|
|
public
|
|
public
|
#
contentType( string $mediaType )
Asserts the Content-Type header. Checks partial matching. Validation PASSES in the following cases: Content-Type: application/json $mediaType = 'application/json' |
public
array
|
|
public
StreamInterface
|
|
public
string
|
|
public
|
#
expectSuccessfull( )
Asserts and analyze the response. Checks if the reponse has SUCCESSFULL family and try to parse the Klarna error message if possbile. |
public
|
Magic methods summary
Properties summary
protected
|
$response
HTTP response to validate against. |