Behat context file for testing JSON-based API's
PHP
Switch branches/tags
Nothing to show
Latest commit 384f5ec Oct 22, 2016
Johan de Jager Johan de Jager
Johan de Jager and Johan de Jager Added the printLastResponseOnError() method.

README.md

behat-api-feature-context

Behat context file for testing JSON-based API's. This file is an adaption of Ryan Weaver his adaptation of the feature context file written by Phil Sturgeon and Ben Corlett.

I just rewrote the file to be compatible with the latest versions (as of Oct 16, 2016) of Behat 3.2, Guzzle 6.2 and PHPUnit 5.6.

#WARNING Most of these functions are not tested yet. I will be using this file for my projects and fix bugs as I encounter them. Be aware of this :)

If you notice any problems, please create a new issue here or if you would like to fix it yourself and create a pull request. :)