PHPackages                             yoanm/behat-utils-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. yoanm/behat-utils-extension

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

yoanm/behat-utils-extension
===========================

A set of utility for Behat3

0.7.0(9y ago)027.6k[1 issues](https://github.com/yoanm/BehatUtilsExtension/issues)1MITPHPPHP &gt;=5.5

Since Dec 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yoanm/BehatUtilsExtension)[ Packagist](https://packagist.org/packages/yoanm/behat-utils-extension)[ RSS](/packages/yoanm-behat-utils-extension/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (5)Versions (12)Used By (1)

BehatUtilsExtension
===================

[](#behatutilsextension)

[![Scrutinizer Build Status](https://camo.githubusercontent.com/f96f814d09105ae4df530d136c12322f7fc1f7f7e6d8fb186d8d09e5f04a314d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f796f616e6d2f42656861745574696c73457874656e73696f6e2e7376673f6c6162656c3d5363727574696e697a6572)](https://scrutinizer-ci.com/g/yoanm/BehatUtilsExtension/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/04dfcddfab0c164c007b1ea77c96b76d1d89dfce4bb2ccf0c88857fb28ce9e44/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f796f616e6d2f42656861745574696c73457874656e73696f6e2e7376673f6c6162656c3d436f64652532307175616c697479)](https://scrutinizer-ci.com/g/yoanm/BehatUtilsExtension/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/956905f095495f420a3d79bf1270336e92604dd0549d40b4a39dd029ad8aa828/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f796f616e6d2f42656861745574696c73457874656e73696f6e2e7376673f6c6162656c3d436f766572616765)](https://scrutinizer-ci.com/g/yoanm/BehatUtilsExtension/?branch=master)

[![Travis Build Status](https://camo.githubusercontent.com/5050bff7e28d250a661d6e826bbd50b1ca110e49f0fe3e702f16e5151c69d973/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f796f616e6d2f42656861745574696c73457874656e73696f6e2f6d61737465722e7376673f6c6162656c3d747261766973)](https://travis-ci.org/yoanm/BehatUtilsExtension) [![PHP Versions](https://camo.githubusercontent.com/26d093a903092111aa1f2004841957e69e68af14b00202ad27f256949810c9a9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e35253230253246253230352e36253230253246253230372e302d3838393242462e737667)](https://php.net/)

[![Latest Stable Version](https://camo.githubusercontent.com/85a4a4d8e5b498dd31b5f6b27c259da4935f97a801a48b074ce4893bb0381d9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796f616e6d2f62656861742d7574696c732d657874656e73696f6e2e737667)](https://packagist.org/packages/yoanm/behat-utils-extension)

BehatUtilsExtension provide a set of utility for Behat 3.0+

- [How to use](#how-to-use)
    - [Installation](#installation)
    - [Configuration](#configuration)
- [In the box](#in-the-box)
    - [Logger](#logger)
    - [Behat event subscription](#behat-event-subscription)
    - [Step logger](#step-logger)
- [Default configuration reference](#default-configuration-reference)
- [Tests](#tests)

Install
=======

[](#install)

```
composer require --dev yoanm/behat-utils-extension
```

How to use
==========

[](#how-to-use)

BehatUtilsExtension require [behat/behat](https://github.com/Behat/Behat) and [monolog/monolog](https://github.com/Seldaek/monolog)

Configuration
-------------

[](#configuration)

Add the following in your behat configuration file (usually `behat.yml`) :

```
default:
    extensions:
        Yoanm\BehatUtilsExtension: ~
```

In the box
----------

[](#in-the-box)

### Logger

[](#logger)

See [`LoggerAwareInterface`](src/Yoanm/BehatUtilsExtension/Context/LoggerAwareInterface.php)

Implements this interface and your context will have a logger injected

#### Example

[](#example)

```
