As you may answer, how can I use this extension in an existing project?
Here's the process for the main libraries:
First, follow the installations steps in the repository then keep this points in mind:
-
This extension requires that
FriendsOfBehat/MinkExtension
is installed. -
FriendsOfBehat use a isolated kernel which run on
test
env with debug set tofalse
, this way, the configuration keys that you set onbehat.yml?(.dist)
only occurs when thetest
env is set on your.env
|.env.local.php
files.
This point is important as the extension DOES NOT change the current application environment
- To run your app in
test
env, you must change theAPP_ENV
value in your.env
file or generate theenv-related
file thanks tocomposer dump-env test
.
The project which run under Docker can easily override the variable thanks to the -e
option
or the environment
configuration key in docker-compose.?(override).yml?.(dist)
The main points still relevant here, but you need to install Behat/MinkExtension
(this extension allows it)
in order to allow Panther to be registered.
In both situations, the installation process described in README.md
stay relevant and must be used to enable
the current extension.
This extension DOES NOT extend MinkContext
, you MUST define a custom context that extend it.