Test if your HTTP messages are compliant with the PSR-7 (HTTP message interfaces) specification.
Use Composer to install this library:
composer require maks3w/psr7-assertions
Psr7Assertions
provides following traits with helper functions for asserting interface constraints:
- MessageInterfaceTestsTrait for testing
MessageInterface
implementations. - RequestInterfaceTestsTrait for testing
RequestInterface
implementations. - ResponseInterfaceTestsTrait for testing
ResponseInterface
implementations. - ServerRequestInterfaceTestsTrait for testing
ServerRequestInterface
implementations.
See examples at example/PhpUnit.
Code licensed under BSD 2 clauses terms & conditions.
See LICENSE.txt for more information.