Skip to content
Bryan Hazelbaker edited this page Oct 1, 2013 · 4 revisions

Installation

Navigate to your bootstrap directory and then git clone --recursive git@github.com:activelamp/behat-context.git

In FeatureContext.php make FeatureContext class extend the context of your choice:

require_once('behat-context/BaseContext.php');

Class FeatureContext extends BaseContext {
    // Make sure to pass parameters to parent.
    public function __construct(array $parameters)
    {
        parent::__construct($parameters);
    }
}

Edit the behat.yml file to include any required variables see example yml file.

Clone this wiki locally