Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.21 KB

index.rst

File metadata and controls

56 lines (37 loc) · 1.21 KB

Installation

This extension requires:

  • Behat 3.0+
  • PHP 5.4+

Through Composer

The easiest way to keep your suite updated is to use Composer:

  1. Define dependencies in your composer.json:

    {
        "require-dev": {
    
            "solution/behat-json-rpc-extension": "dev-master"
        }
    }
  2. Install/update your vendors:

    $ composer update solution/behat-json-rpc-extension
  3. 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

Guzzle options

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