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.
Requires
- php: >=5.3.2
- behat/behat: ~3.0,>=3.0.5
This package is not auto-updated.
Last update: 2024-01-20 15:44:54 UTC
README
Introduction
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.