PHPackages                             enlitepro/enlite-behat-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. enlitepro/enlite-behat-extension

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

enlitepro/enlite-behat-extension
================================

Behat extension for integration Zend Framework 2 application

v1.0.0(12y ago)0472MITPHPPHP &gt;=5.3.3

Since Oct 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/enlitepro/enlite-behat-extension)[ Packagist](https://packagist.org/packages/enlitepro/enlite-behat-extension)[ RSS](/packages/enlitepro-enlite-behat-extension/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (2)Used By (0)

ZF2 Behat extension [![Build Status](https://camo.githubusercontent.com/e6890da53e31c0ff9abf70504b0e914c4344425d9ddb8c7445363ba403afa4d8/68747470733a2f2f7472617669732d63692e6f72672f656e6c69746570726f2f656e6c6974652d62656861742d657874656e73696f6e2e706e67)](https://travis-ci.org/enlitepro/enlite-behat-extension)
=======================================================================================================================================================================================================================================================================================================================

[](#zf2-behat-extension-)

Provides integration layer for Zend Framework 2:

- Integration into Zend Framework module structure - you can run an isolated module suite by name, classname and even full path
- `ApplicationAwareInterface`, which provides booted application for your context
- `Zend\ServiceManager\ServiceLocatorAwareInterface`, which provides service locator for your context

Installation
============

[](#installation)

Add yo your `composer.json`

```
{
    "require": {
        "enlitepro/enlite-behat-extension": "1.0.*"
    }
}
```

and add in your `behat.yml`

```
default:
  extensions:
    EnliteBehatExtension\Zf2Extension: ~
      # module: moduleName
      # config: path_to_application.config.php
      # environment: testing
```

Usage
=====

[](#usage)

```
# create directory structure and context file in module Application
behat --init "@Application"

# You can use short module notation to run features
behat "@Application"
```

There are two interface, which you can implement for your context

1. `EnliteBehatExtension\Context\ApplicationAwareInterface` - inject `Zend\Mvc\Application`. Your can use trait `EnliteBehatExtension\Context\ApplicationAwareTrait` to implement required methods
2. `Zend\ServiceManager\ServiceLocatorAwareInterface` - inject service manager.

Credits
=======

[](#credits)

Inspired by [Symfony2Extension](https://github.com/Behat/Symfony2Extension)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4592d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85fd7e537322d53678e041faf9e0aa89201aa392d40de4824a08edc78c493976?d=identicon)[ftdebugger](/maintainers/ftdebugger)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enlitepro-enlite-behat-extension/health.svg)

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

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[friends-of-behat/symfony-extension

Integrates Behat with Symfony.

48223.4M551](/packages/friends-of-behat-symfony-extension)[friends-of-behat/variadic-extension

Variadic support for behat context arguments

2286.0M446](/packages/friends-of-behat-variadic-extension)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M467](/packages/friends-of-behat-mink-extension)[friends-of-behat/suite-settings-extension

Allows to overwrite suites' default settings.

2154.1M387](/packages/friends-of-behat-suite-settings-extension)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

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