Download the PHP package yoanm/behat3-symfony-extension without Composer
On this page you can find all versions of the php package yoanm/behat3-symfony-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package behat3-symfony-extension
Behat3SymfonyExtension
Behat3SymfonyExtension is a layer between Behat 3.0+ and Symfony2.7+|3+, strongly inspired by Symfony2Extension.
- Why
- Install
- How to use
- Configuration
- In the box
Client
KernelAwareInterface
LoggerAwareInterface
SfKernelEventLogger
- Debug mode
- Default configuration reference
- Tests
- Contributing
Why
See Why ? Or rather, why not Symfony2Extension ?
Install
How to use
Behat3SymfonyExtension require yoanm/behat-utils-extension, behat/behat, monolog/monolog, symfony/browser-kit and symfony/framework-bundle
Configuration
Add the following in your behat configuration file (usually behat.yml
) :
To use the behat3Symfony
driver for mink (created thanks to behat/mink-browserkit-driver.
Then, add the following in your behat configuration file :
In the box
Client
It will be used by the mink driver if mink installed and configured to use the behat3Symfony
driver
KernelAwareInterface
Will inject your symfony app kernel instance in your behat contexts
LoggerAwareInterface
Will inject a monolog logger instance in your behat contexts
SfKernelEventLogger
Only in case where kernel.debug
is set to true (see default kernel configuration below).
Produce a log entry each time that your symfony application kernel will :
- handle a request
- catch an exception
All data are loggued in the configured file (see default logger configuration below)
Debug mode
To enable extension debug mode, add the following in your behat configuration file :
This mode allow two things :
- Kernel bridge class file is not deleted. If you have some errors related to the bridge, it will be easier for debug.
-
Some new log entry are added, regarding Kernel bridge and Client behavior
In case you just want the log entry, just add the following in your behat configuration file :
Configuration reference
Tests
This repository follow a custom test strategy
Contributing
See contributing note
All versions of behat3-symfony-extension with dependencies
behat/behat Version ~3.0
yoanm/behat-utils-extension Version ~0.6
symfony/framework-bundle Version ~2.7|~3.0