Class ResponseValidator
HTTP response validator helper class.
Methods summary
public
|
#
__construct( Psr\Http\Message\ResponseInterface $response )
Constructs a response validator instance. |
public
Psr\Http\Message\ResponseInterface
|
|
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
|
Magic methods summary
Properties summary
protected
Psr\Http\Message\ResponseInterface
|
$response
HTTP response to validate against. |