This extension requires:
- Behat 3.0+
- PHP 5.4+
The easiest way to keep your suite updated is to use Composer:
Define dependencies in your
composer.json
:{ "require-dev": { "solution/behat-json-rpc-extension": "dev-master" } }
Install/update your vendors:
$ composer update solution/behat-json-rpc-extension
Activate extension by specifying its class in your
behat.yml
:# behat.yml default: extensions: Solution\JsonRpcApiExtension: base_url: http://127.0.0.1:8080/json-rpc
If you want set the guzzle options (disable verify peer as example), you can rewrite any options for Guzzle client:
default:
extensions:
Solution\JsonRpcApiExtension:
base_url: http://127.0.0.1:8080/json-rpc
options:
ssl.certificate_authority: system
defaults:
verify: false