https://github.com/titomiguelcosta/behatcontexts
Contexts for Behat 3
https://github.com/titomiguelcosta/behatcontexts
Last synced: 3 days ago
JSON representation
Contexts for Behat 3
- Host: GitHub
- URL: https://github.com/titomiguelcosta/behatcontexts
- Owner: titomiguelcosta
- Created: 2015-02-15T16:51:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T17:52:06.000Z (over 8 years ago)
- Last Synced: 2025-04-05T16:36:09.075Z (3 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Zorbus Behat Contexts
=====================Contexts for Behat 3.
At the moment, just a Doctrine 2 context is included.
Instalation
-----------composer require zorbus/behat-contexts
Example
-------Check the FeatureContext.php for an example on how to instantiate the database context.
In case you are using the Symfony2 extension, you can pass the services defined in the container, no need to create the connection and entity manager manually.
Check database.feature for a real example of the defined steps.
Usage
-----Tag your scenarios with @database to make clean the database.
Test
----In the root of the package, run:
touch data/db.sqlite
php vendor/bin/behat --suite=sqlite