Behat Context to allow create and drop a DB schema before each Scenario
#Behat Doctrine Context This package tries to help when testing with doctrine. Its main goal is to drop and recreate a database based on Doctrine Metadata while testing with Behat.
In order to enable it in behat you need to have a similar behat.yml
default: suites: default: contexts: ... - GabyQuiles\Behat\Context\DoctrineContext: entityManager: '@doctrine.orm.entity_manager'
When creating your Behat scenarios
@createSchemain your first scenario in order to create a new database
@dropSchemain your last scenario in order to drop your database