PHPackages                             teoble/behat-lumen-extension - 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. teoble/behat-lumen-extension

ActiveBehat-extension[Testing &amp; Quality](/categories/testing)

teoble/behat-lumen-extension
============================

Lumen extension for Behat

35.3k[1 issues](https://github.com/Teoble/behat-lumen-extension/issues)PHP

Since Nov 29Pushed 7y agoCompare

[ Source](https://github.com/Teoble/behat-lumen-extension)[ Packagist](https://packagist.org/packages/teoble/behat-lumen-extension)[ RSS](/packages/teoble-behat-lumen-extension/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

This project is a update of arisro/behat-lumen-extension to work in Lumen v5.2 or higher
----------------------------------------------------------------------------------------

[](#this-project-is-a-update-of-arisrobehat-lumen-extension-to-work-in-lumen-v52-or-higher)

The purpose of the project is to make available the [behat-lumen-extension](https://github.com/arisro/behat-lumen-extension) for Lumen higher versions than v5.1, since that in the original project it works on in v5.2.

Thanks for [Aris Buzachis](https://github.com/arisro) for developing suching an helping tool as behat-lumen-extension

1. Install Dependencies
=======================

[](#1-install-dependencies)

As always, we need to pull in some dependencies through Composer.

```
composer require behat/behat behat/mink behat/mink-extension teoble/behat-lumen-extension --dev

```

This will give us access to Behat, Mink, and, of course, the Lumen extension.

If you want to use a custom .env file for the Behat tests you will need to modify `bootstrap/app.php` like this:

```
try {
    (new Dotenv\Dotenv(__DIR__.'/../', isset($dotEnvFile) ?: '.env'))->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
    //
}
```

2. Create the behat.yml configuration file
==========================================

[](#2-create-the-behatyml-configuration-file)

Next, within your project root, create a `behat.yml` file, and add:

```
default:
  autoload: [ %paths.base%/tests/functional/contexts ]
  extensions:
    Arisro\Behat\ServiceContainer\LumenExtension:
      # env_file: .env.behat
    Behat\MinkExtension:
      default_session: lumen
      lumen: ~
  suites:
    default:
      paths: [ %paths.base%/tests/functional/features ]
      filters:
      contexts:
        - FeatureContext
```

Optinally, you can specify a different .env file for your functional tests (with a test DB for example).

3. Write Some Features
======================

[](#3-write-some-features)

You have a very small example here .

Note: if you want to leverage some of the Mink helpers in your `FeatureContext` file, then be sure to extend `Behat\MinkExtension\Context\MinkContext`.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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://www.gravatar.com/avatar/d948fd751e0a2206ceed76a8fd49c8374c7c709ea516e010f9da8b6e033cdb7d?d=identicon)[Teoble](/maintainers/Teoble)

---

Top Contributors

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

---

Tags

behatbehat-lumen-extensionlumenlumen-higher-versionsminkphpphp-library

### Embed Badge

![Health badge](/badges/teoble-behat-lumen-extension/health.svg)

```
[![Health](https://phpackages.com/badges/teoble-behat-lumen-extension/health.svg)](https://phpackages.com/packages/teoble-behat-lumen-extension)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)[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)
