Download the PHP package tabbi89/behat-silex-extension without Composer
On this page you can find all versions of the php package tabbi89/behat-silex-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tabbi89/behat-silex-extension
More information about tabbi89/behat-silex-extension
Files in tabbi89/behat-silex-extension
Package behat-silex-extension
Short Description Behat extension for silex
License MIT
Homepage http://github.com/tabbi89/behat-silex-extension
Informations about the package behat-silex-extension
BehatSilexExtension
This extension offers an easy way to begin testing Silex applications with Behat. If You are familiar with Symfony2Extension for behat then setup with this extension
will be very simple. Like the extension mentioned above it uses bare Application do it doesn't depend on anything else like Goutte so it is just faster in usage.
On each scenario we have fresh new instance of Application. Extension offers ApplicationDictionary
which allows to access Your application.
Installation
Usage
Next, within your project root, create a behat.yml
file, and add:
Here, is where we reference the Silex extension, and tell Behat to use it as our default session. Extension allows some basic configuration values
which will be passed to Your application (env
, debug
, testSession
)
If You want to use extension with Your file as main point:
If You have more questions about application looks check examples in tests/app/*
and configuration tests/behat.yml.dist
ApplicationDictionary
Just include ApplicationDictionary
trait in Your FeatureContext to access Your application:
License
This bundle is under the MIT license.
All versions of behat-silex-extension with dependencies
silex/silex Version ^1.2,>=1.2
behat/behat Version ~3.0,>=3.0.4
behat/mink-browserkit-driver Version ~1.3