2017 © Pedro Peláez
 

extension initializer

image

ptbfw/initializer

  • Thursday, September 1, 2016
  • by po_taka
  • Repository
  • 1 Watchers
  • 1 Stars
  • 64 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Compatible with behat v3, (*1)

SensioLabsInsight, (*2)

Usage:, (*3)

default:
    extensions:
      Ptbfw\Initializer\Extension:
            resetters:
                {servicename}:
                    type: {executer type}
                    {executer Options}
                {SecondServiceName}:
                    type: {executer type}
                    {executer Options}

Example behat.yml config:, (*4)

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'

Types

Mysql

directory(ies) is relative from %features%/bootstrap/database/
If directory start with / then path is treated as absolute. If both directory and directories are provided, directory is merged in directories, (*5)

Executer

ls and whoami are command witch are executed before every scenario. You can use this for apache restart, moving files, clearing cache etc., (*6)

The Versions

01/09 2016

dev-master

9999999-dev https://github.com/ptbfw/Initializer

  Sources   Download

MIT

The Requires

 

extension

01/09 2016
25/02 2015

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/ptbfw/Initializer

  Sources   Download

MIT

The Requires

 

extension

25/02 2015
20/02 2015
20/01 2015
07/01 2015

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/ptbfw/Initializer

  Sources   Download

MIT

The Requires

 

extension

07/01 2015

1.0.0

1.0.0.0 https://github.com/ptbfw/Initializer

  Sources   Download

MIT

The Requires

 

extension