timitao/behat-symfony-container

Allows to declare own services inside Behat loaded by symfony service manager

v1.1 2018-07-18 20:40 UTC

README

License Latest Stable Version

Behat Symfony Extension

This extension provide isolated symfony container from Behat.

This extension borrow a lot from extension, but:

  • don't force minimal PHP version to 7.1,
  • have isolated container.

Configuration

  1. Install it:

    $ composer require timitao/behat-symfony-container --dev
  2. To enable this extension and load container:

    # behat.yml
    default:
        suites:
            default:
                services: "@timitao_behat_symfony_container.container"
        extensions:
            TimiTao\BehatSymfonyContainer\ServiceContainer\Extension:
                configs:
                    - "PATH_TO_FILE"
                    - "PATH_TO_FILE"
                    - "PATH_TO_FILE"
  3. Write services files definitions, that are generally accepted by Symfony with format yml, xml or PHP. Check out examples

Versioning

Staring version 1.0.0, will follow Semantic Versioning v2.0.0.

Contributors

  • Tomasz Kunicki TimiTao [lead developer]