Download the PHP package ovr/swagger-assert-helper without Composer
On this page you can find all versions of the php package ovr/swagger-assert-helper. 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-assert-helper
Swagger Assert Helper
This library bring support for:
- Making HTTP Request by Swagger Path
- Asserting HTTP Response with Swagger Response Scheme
- Functional testing on top of frameworks:
Zend
,Laravel
,Slim
,Symfony
- Integration testing on top of:
Guzzle
Installing via Composer
You can use Composer .
How to use?
1. Write Swagger Definition for your API:
I love to use PHP comments, example:
More definition examples you can find in:
- Example/API - example of small HTTP REST service by PHP comments
- Example/GitHub - example definitions for
api.github.com
by PHP comments
2. Write test for your Controller
Functional
Functional - when you execute Request
inside your service (PHP
code), there are support for:
- Symfony by SymfonyTrait
- Laravel by LaravelTrait
- Zend by ZendTrait
- Slim by SlimTrait
Example:
Integration
Integration - when you execute Request
by real transport, there are support for:
- Guzzle by GuzzleTrait
FAQ
- Q: Can this library validate my Swagger definition?
- A: No. This library validate your API requests and responses match your Swagger definition.
- Q: What content types are supported?
- A: JSON for now, ask me for XML or something else in the issues.
LICENSE
This project is open-sourced software licensed under the MIT License.
See the LICENSE file for more information.
All versions of swagger-assert-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
phpunit/phpunit Version >=4.8 <6.0
zircote/swagger-php Version ^2.0.13
flow/jsonpath Version ~0.3.1
phpunit/phpunit Version >=4.8 <6.0
zircote/swagger-php Version ^2.0.13
flow/jsonpath Version ~0.3.1
The package ovr/swagger-assert-helper contains the following files
Loading the files please wait ....