ptbfw / initializer
此包已被 弃用 且不再维护。未建议替代包。
2.0.3
2016-09-01 08:16 UTC
Requires
- php: >=5.4
- behat/behat: 3.*
- symfony/finder: 2.*
This package is not auto-updated.
Last update: 2020-08-21 17:29:15 UTC
README
兼容 behat v3
用法
default:
extensions:
Ptbfw\Initializer\Extension:
resetters:
{servicename}:
type: {executer type}
{executer Options}
{SecondServiceName}:
type: {executer type}
{executer Options}
behat.yml 配置示例
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'
类型
MySQL
目录 相对于 %features%/bootstrap/database/如果 目录 以 `/` 开始,则路径被视为绝对路径。如果同时提供了 目录 和 目录集,则 目录 将合并到 目录集 中