PHP Class Raml\Validator\ResponseValidator

ファイルを表示 Open project: alecsammon/php-raml-parser

Public Methods

Method Description
__construct ( ValidatorSchemaHelper $schema )
validateResponse ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )

Private Methods

Method Description
assertNoMissingHeaders ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
assertValidBody ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
assertValidHeaders ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
getNamedParametersAsString ( array $errors ) : string
getSchemaErrorsAsString ( array $errors ) : string

Method Details

__construct() public method

public __construct ( ValidatorSchemaHelper $schema )
$schema ValidatorSchemaHelper

validateResponse() public method

public validateResponse ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface