PHPackages                             davedevelopment/behat-registry - 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. davedevelopment/behat-registry

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

davedevelopment/behat-registry
==============================

Inject a registry in to feature contexts

v0.1.0(13y ago)15.5k2MITPHPPHP &gt;=5.3.2

Since Apr 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/davedevelopment/behat-registry)[ Packagist](https://packagist.org/packages/davedevelopment/behat-registry)[ RSS](/packages/davedevelopment-behat-registry/feed)WikiDiscussions master Synced 1mo ago

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

behat-registry
==============

[](#behat-registry)

What is it?
-----------

[](#what-is-it)

A little extension that allows a simple registry to be injected in to FeatureContexts, allowing steps to share data across contexts if necessary

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

[](#installation)

The only documented way to install behat-registry is with [composer](http://getcomposer.org)

```
$ composer.phar require --dev davedevelopment/behat-registry:*
```

Usage
-----

[](#usage)

Add the extension to your `behat.yml` file:

```
default:
    extensions:
        DaveDevelopment\BehatRegistry\Extension:
```

If you implement the `DaveDevelopment\BehatRegistry\Context\Initializer\RegistryAwareInterface` with your `Context` classes, they will have a Registry injected.

```
