imbo / behat-api-extension

API extension for Behat, used to ease testing of JSON-based APIs
MIT License
109 stars 42 forks source link

New step: Check actual response body size #25

Closed christeredvartsen closed 7 years ago

christeredvartsen commented 7 years ago

To check the response body size one can check the Content-Type response header. This might not always be present, and it's not trustable. A step that checks the length of the response body should be added.

christeredvartsen commented 7 years ago

For testing purposes it's most likely enough to be able to check the Content-Length response header. Closing for now.