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.2k↓100%[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 1mo 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 27% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity24

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

[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.9M571](/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)
