PHPackages                             integrated/behat-extensions - 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. integrated/behat-extensions

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

integrated/behat-extensions
===========================

Integrated Behat extensions for FeatureContext files

02.1k↓100%PHP

Since May 18Pushed 5y ago4 watchersCompare

[ Source](https://github.com/integratedfordevelopers/integrated-behat-extensions)[ Packagist](https://packagist.org/packages/integrated/behat-extensions)[ RSS](/packages/integrated-behat-extensions/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

IntegratedBehatExtensions
=========================

[](#integratedbehatextensions)

This bundle enhances FeatureContext classes with traits for Behat with Mink

Requirements
------------

[](#requirements)

- See the require section in the composer.json

Documentation
-------------

[](#documentation)

- [Integrated for Developers](http://integratedfordevelopers.com/ "Integrated for Developers")

Installation
------------

[](#installation)

This bundle can be installed following these steps:

### Install using composer

[](#install-using-composer)

```
$ composer require integrated/integrated-behat-extensions:master

```

### Configuration

[](#configuration)

The extensions require a autoload path to be defined in the configuration of Behat.

```
// behat.yml
default:
    ...
    autoload:
        "" : %paths.base%/features/bootstrap
        "Integrated\\Behat" : %paths.base%/vendor/integrated/behat-extensions/src
...

```

In order to be able to catch mails send from the Symfony application the spool of Swiftmailer must be written to a directory.

```
// app/config/config_test.yml
...
swiftmailer:
    disable_delivery: true
    spool:
        type: file
        path: %kernel.cache_dir%/spool

```

Using Extensions
----------------

[](#using-extensions)

All extensions that enhance your FeatureContext class are in the Extension folder of the project. The other classes are used in an supporting way of the extensions. Depending on the extension type abstract methods are be defined in the trait. There mostly are declared within the MinkContext.

### Example

[](#example)

The traits are placed within the FeatureContext class.

```
// features/bootstrap/FeatureContext.php
...
use Integrated/Behat/Extension/Login/SymfonyLogin;
...
class FeatureContext extends MinkContext implements Context
{
    use SymfonyLogin;
...

```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
LICENSE

```

Contributing
------------

[](#contributing)

Pull requests are welcome. Please see our [CONTRIBUTING guide](http://integratedfordevelopers.com/contributing "CONTRIBUTING guide").

About
-----

[](#about)

This bundle is part of the Integrated project. You can read more about this project on the [Integrated for Developers](http://integratedfordevelopers.com/ "Integrated for Developers") website.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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/5710731?v=4)[Integrated Publishing Solutions](/maintainers/integrated)[@integrated](https://github.com/integrated)

---

Top Contributors

[![koenprins](https://avatars.githubusercontent.com/u/4244625?v=4)](https://github.com/koenprins "koenprins (14 commits)")[![MichaelJongman](https://avatars.githubusercontent.com/u/16837059?v=4)](https://github.com/MichaelJongman "MichaelJongman (3 commits)")[![jansanne](https://avatars.githubusercontent.com/u/1027048?v=4)](https://github.com/jansanne "jansanne (2 commits)")[![johnnyborg](https://avatars.githubusercontent.com/u/9214245?v=4)](https://github.com/johnnyborg "johnnyborg (2 commits)")[![gerjanvdbosch](https://avatars.githubusercontent.com/u/1926929?v=4)](https://github.com/gerjanvdbosch "gerjanvdbosch (1 commits)")[![psat01](https://avatars.githubusercontent.com/u/27204171?v=4)](https://github.com/psat01 "psat01 (1 commits)")[![johanliefers](https://avatars.githubusercontent.com/u/12084685?v=4)](https://github.com/johanliefers "johanliefers (1 commits)")[![marijnotte](https://avatars.githubusercontent.com/u/6791447?v=4)](https://github.com/marijnotte "marijnotte (1 commits)")[![pappi1987](https://avatars.githubusercontent.com/u/3527242?v=4)](https://github.com/pappi1987 "pappi1987 (1 commits)")

### Embed Badge

![Health badge](/badges/integrated-behat-extensions/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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