The repository contains the set of pre-defined requests and expected responses of DeathStar API. The contract-file has been defined using OpenAPI 3.0.0 specification.
composer require lzakrzewski/death-star-contracts
In order to perform "contract testing" you can use built-in components:
- RequestValidator - asserts that provided request is matching contract,
- RandomizedResponse - factory to create examples of responses based on the specification.