behat-api-feature-context
behat-api-feature-context copied to clipboard
Behat context file for testing JSON-based API's
For Symfony 4, ApiFeatureContext should require the following when using Symfony's bridge: require_once __DIR__ . '/../../vendor/bin/.phpunit/phpunit-5.7/vendor/autoload.php'; require_once __DIR__ . '/../../vendor/bin/.phpunit/phpunit-5.7/src/Framework/Assert/Functions.php'; If you have phpunit as a dependency, you will get...
In guzzle 6.xx, the ClientException (thrown on 4xx responses) and ServerException (thrown on 5xx responses) both extend the BadResponseException, that way it was impossible to test an error in the...