PHPackages                             gabyquiles/doctrine-context - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. gabyquiles/doctrine-context

ActiveLibrary[Testing &amp; Quality](/categories/testing)

gabyquiles/doctrine-context
===========================

Behat Context to allow create and drop a DB schema before each Scenario

017PHP

Since Feb 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gabyquiles/doctrine-context)[ Packagist](https://packagist.org/packages/gabyquiles/doctrine-context)[ RSS](/packages/gabyquiles-doctrine-context/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#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.

Configuration
-------------

[](#configuration)

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'

```

Usage
-----

[](#usage)

When creating your Behat scenarios

- Add `@createSchema` in your first scenario in order to create a new database
- Add `@dropSchema` in your last scenario in order to drop your database

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/481725?v=4)[Gabriel A. Quiles-Pérez](/maintainers/gabyquiles)[@gabyquiles](https://github.com/gabyquiles)

---

Top Contributors

[![gabyquiles](https://avatars.githubusercontent.com/u/481725?v=4)](https://github.com/gabyquiles "gabyquiles (8 commits)")

### Embed Badge

![Health badge](/badges/gabyquiles-doctrine-context/health.svg)

```
[![Health](https://phpackages.com/badges/gabyquiles-doctrine-context/health.svg)](https://phpackages.com/packages/gabyquiles-doctrine-context)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
