PHP Class Raml\Validator\ResponseValidator

Afficher le fichier Open project: alecsammon/php-raml-parser

Méthodes publiques

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

Private Methods

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

public __construct ( ValidatorSchemaHelper $schema )
$schema ValidatorSchemaHelper

validateResponse() public méthode

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