pproenca/behat-bootstrap-file-loader

Introduces a new configuration option to include a custom bootstrap file.

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0 2016-02-03 14:03 UTC

This package is not auto-updated.

Last update: 2024-01-20 15:44:54 UTC


README

  1. System Requirements
  2. Installation - Using Composer
  3. Configuration

Introduction

Latest Stable Version Total Downloads Latest Unstable Version License

Introduces a new configuration option, in Behat, to include a custom bootstrap file.

Inspired by bootstrap configuration in phpunit.xml

This option is commonly used to include vendor/autoloader.php

System Requirements

This extension requires Behat 3.0. Later versions are not supported.

Installation - Using Composer

Add our project as a dependency in your composer.json.

{
    "require": {
        "pproenca/behat-bootstrap-file-loader": "~1.0"
    }
}

Update your dependencies by running composer update, inside the project directory.

Configuration

Open your behat.yml, and activate our extension.

default:
  extensions:
    Pproenca\Behat\BootstrapFileLoader:
        bootstrap_path: "<path_to_my_file>/bootstrap.php"

The bootstrap_path is required, and must contain the full or relative path to your bootstrap file.