PHPackages                             zorbus/behat-contexts - 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. zorbus/behat-contexts

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

zorbus/behat-contexts
=====================

Contexts for functional testing with behat

0.2.5(9y ago)15.0k2MITPHP

Since Feb 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/titomiguelcosta/BehatContexts)[ Packagist](https://packagist.org/packages/zorbus/behat-contexts)[ Docs](http://www.titomiguelcosta.com)[ RSS](/packages/zorbus-behat-contexts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (8)Used By (0)

Zorbus Behat Contexts
=====================

[](#zorbus-behat-contexts)

Contexts for Behat 3.

At the moment, just a Doctrine 2 context is included.

Instalation
-----------

[](#instalation)

composer require zorbus/behat-contexts

Example
-------

[](#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
-----

[](#usage)

Tag your scenarios with @database to make clean the database.

Test
----

[](#test)

In the root of the package, run:

touch data/db.sqlite php vendor/bin/behat --suite=sqlite

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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.

###  Release Activity

Cadence

Every ~106 days

Recently: every ~159 days

Total

7

Last Release

3470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c029fa4d3fe3cd9c559533eaf82b2e234bddcb2662261dbe0874c51a55fe3b93?d=identicon)[titomiguelcosta](/maintainers/titomiguelcosta)

---

Top Contributors

[![titomiguelcosta](https://avatars.githubusercontent.com/u/192639?v=4)](https://github.com/titomiguelcosta "titomiguelcosta (8 commits)")[![ben-challis](https://avatars.githubusercontent.com/u/8275163?v=4)](https://github.com/ben-challis "ben-challis (1 commits)")

---

Tags

BDDSymfony2ContextBehat

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/zorbus-behat-contexts/health.svg)

```
[![Health](https://phpackages.com/badges/zorbus-behat-contexts/health.svg)](https://phpackages.com/packages/zorbus-behat-contexts)
```

###  Alternatives

[soyuka/contexts

Behatch contexts

282.1M11](/packages/soyuka-contexts)[dmarynicz/behat-parallel-extension

Parallel extension for Behat

27544.3k](/packages/dmarynicz-behat-parallel-extension)[novaway/common-contexts

Novaway Behat common contexts

18187.8k3](/packages/novaway-common-contexts)[macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

16232.9k](/packages/macpaw-behat-messenger-context)[marcortola/behat-seo-contexts

Behat extension for testing some On-Page SEO factors: meta title/description, canonical, hreflang, meta robots, robots.txt, redirects, sitemap validation, HTML validation, performance...

13153.8k](/packages/marcortola-behat-seo-contexts)

PHPackages © 2026

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