Compatible with behat v3
Usage:
default:
extensions:
Ptbfw\Initializer\Extension:
resetters:
{servicename}:
type: {executer type}
{executer Options}
{SecondServiceName}:
type: {executer type}
{executer Options}
Example behat.yml config:
default:
extensions:
Ptbfw\Initializer\Extension:
resetters:
test:
type: 'Executer'
commands:
- "ls"
- "whoami"
local_service:
type: 'mysql'
host: 'localhost'
user: 'behat'
password: '1'
database: 'behat'
port: 3306
<b>directory</b>: 'local'
init_command: 'SET NAMES "UTF8"'
local_service_api:
type: 'mysql'
host: 'localhost'
user: 'behat2'
password: '1'
database: 'behatTwo'
<b>directories</b>:
- 'local_service_api'
- 'local_service'
If directory start with `/` then path is treated as absolute. If both directory and directories are provided, directory is merged in directories ls and whoami are command witch are executed before every scenario. You can use this for apache restart, moving files, clearing cache etc.