ptbfw/initializer

此包已被 弃用 且不再维护。未建议替代包。

安装: 71

依赖: 0

建议者: 1

安全: 0

星星: 1

关注者: 1

分支: 0

开放问题: 0

类型: 扩展

2.0.3 2016-09-01 08:16 UTC

This package is not auto-updated.

Last update: 2020-08-21 17:29:15 UTC


README

兼容 behat v3

SensioLabsInsight

用法

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/
如果 目录 以 `/` 开始,则路径被视为绝对路径。如果同时提供了 目录目录集,则 目录 将合并到 目录集

执行器

lswhoami 是在每个场景之前执行的命令。您可以用这个来重启 apache、移动文件、清除缓存等。