2018-08-01 15:23:37 +02:00
2018-03-13 15:34:12 +01:00
2016-11-03 11:36:50 +01:00
2016-11-03 11:36:50 +01:00
2018-03-13 15:34:12 +01:00
2016-11-03 11:36:50 +01:00
2018-08-01 15:23:37 +02:00
2017-01-16 17:33:43 +01:00
2018-03-03 22:23:11 +01:00

Symfony Extension License Version Build status on Linux Scrutinizer Quality Score

Integrates Behat with Symfony (both 2 and 3). Inspired by Behat/Symfony2Extension.

Differences

  • Built-in symfony driver uses different kernel than the one that is used in the contexts. This means you can always change it to any other driver without any issues and ensures that application behaviour will not be affected by stateful services.

Usage

  1. Install it:

    $ composer require friends-of-behat/symfony-extension --dev
    
  2. Enable and configure in your Behat configuration:

    # behat.yml
    default:
        # ...
        extensions:
            FriendsOfBehat\SymfonyExtension: ~
    

Symfony 3 configuration

FriendsOfBehat\SymfonyExtension:
    kernel:
        bootstrap: 'var/bootstrap.php.cache'
        path: app/AppKernel.php
        class: 'AppKernel'
        env: test
        debug: true

Symfony 4 configuration

FriendsOfBehat\SymfonyExtension:
    env_file: .env
    kernel:
        class: 'MyTrip\Kernel'
        path: src/Kernel.php
        debug: true

Symfony 4 does not have bootstrap file anymore and the environment is configured in the .env file.

  1. Good luck & have fun!
Description
Fork of FriendsOfBehat SymfonyExtension with Symfony 8 / PHP 8.5 compatibility work
Readme MIT 564 KiB
Languages
Gherkin 62.7%
PHP 37.3%