Download the PHP package fr3d/swagger-assertions without Composer
On this page you can find all versions of the php package fr3d/swagger-assertions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package swagger-assertions
Swagger Assertions
Test any API requests and responses match with the models described in the documentation.
This project is compatible with Swagger 2 spec definitions.
Installing via Composer
You can use Composer .
Usage in PHPUnit
There are two traits for provide predefined helper functions for different assertions.
- AssertsTrait For assert different parts of the response
- PSR-7 compatible responses.
- Symfony HTTP Foundation responses.
See examples at examples/PhpUnit
FAQ
- Q: Can this library validate my Swagger definition?
- A: No. This library validate your API requests and responses match your Swagger definition.
License
Code licensed under BSD 2 clauses terms & conditions.
See LICENSE.txt for more information.
All versions of swagger-assertions with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 7.2
ext-json Version *
justinrainbow/json-schema Version ^5
phpunit/phpunit Version ^8.0||^9.0
rize/uri-template Version ^0.3.0
ext-json Version *
justinrainbow/json-schema Version ^5
phpunit/phpunit Version ^8.0||^9.0
rize/uri-template Version ^0.3.0
The package fr3d/swagger-assertions contains the following files
Loading the files please wait ....