Allows to use the symfony env parameter syntax in the behat config
-
Install it:
$ composer require tourstream/environment-extension --dev
-
Enable and configure environment extension in your Behat configuration:
# behat.yml default: # ... extensions: Tourstream\Behat\EnvironmentExtension: # the default configuration: env_file: '%paths.base%/.env' #default path
-
EnvironmentExtension should be the last extensions, so that all parameters are already known. Otherwise it can happen, that not all
%env()%are resolved
env_file- a dot env file, contains environment variables which should be also used, the file is not required