PHPackages                             caciobanu/behat-deprecation-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. caciobanu/behat-deprecation-extension

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

caciobanu/behat-deprecation-extension
=====================================

Deprecation extension for Behat

v2.1.1(5y ago)22712.3k↓31.6%5[1 issues](https://github.com/caciobanu/behat-deprecation-extension/issues)[1 PRs](https://github.com/caciobanu/behat-deprecation-extension/pulls)4MITPHPPHP &gt;=5.3.3CI failing

Since May 3Pushed 1y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (9)Used By (4)

Behat Deprecation Extension
===========================

[](#behat-deprecation-extension)

A [Behat extension](http://behat.org) to display the whole list of user deprecated features (E\_USER\_DEPRECATED messages). It can be useful in a Symfony2 application when the tests are run with [Symfony2 BrowserKit driver for Mink framework](https://github.com/minkphp/MinkBrowserKitDriver) but not limited to.

[![Package version](https://camo.githubusercontent.com/594725ed5ede6c6a40fcf538d5d5c6cca2456ac3db5bdb9b1ceae6473fdb0638/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636163696f62616e752f62656861742d6465707265636174696f6e2d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/caciobanu/behat-deprecation-extension)[![Build Status](https://camo.githubusercontent.com/82fcd6f97fdbd5ac59f7253237d3ae75422dceb98d0d4d7cb902a3b97aa0766a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636163696f62616e752f62656861742d6465707265636174696f6e2d657874656e73696f6e2e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/caciobanu/behat-deprecation-extension?branch=master)

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

[](#installation)

You can use [Composer](https://getcomposer.org/) to install the extension to your project:

```
composer require --dev caciobanu/behat-deprecation-extension
```

Then, in your behat config file `behat.yml`, register the extension:

```
# behat.yml
default:
    extensions:
        Caciobanu\Behat\DeprecationExtension: ~
```

Or like below with a mode set:

```
# behat.yml
default:
    extensions:
        Caciobanu\Behat\DeprecationExtension:
            mode: weak
```

The following reporting modes are supported:

- use null to display the deprecation report without making the test suite fail (default);
- use "weak" to hide the deprecation report but keep a global count;
- use a number to define the upper bound of allowed deprecations, making the tests fail whenever more notices are triggered.

Basic usage
-----------

[](#basic-usage)

Run Behat and enjoy :)

#### The summary includes:

[](#the-summary-includes)

- Unsilenced
    - Reports deprecation notices that were triggered without the recommended @-silencing operator.
- Legacy
    - Deprecation notices denote tests that explicitly test some legacy features, marked with the @legacy tag.
- Remaining
    - Deprecation notices are all other (non-legacy) notices.

Ignore some deprecation
-----------------------

[](#ignore-some-deprecation)

You can filter the file that did make the call to `trigger_error` like this:

```
default:
    extensions:
        Caciobanu\Behat\DeprecationExtension:
            ignore:
                - { file: '#symfony#' }
                - { file: '#my-app#' }
```

It will ignore every files that matches any of the listed regexps

Or you can filter deprecation messages like this:

```
default:
    extensions:
        Caciobanu\Behat\DeprecationExtension:
            ignore:
                - { message: '#symfony#' }
                - { message: '#my-app#' }
```

It will ignore every deprecation message that matches any of the listed regexps

You can use both filter types at the same time:

```
default:
    extensions:
        Caciobanu\Behat\DeprecationExtension:
            ignore:
                - { file: '#symfony#', message: '#symfony#' }
```

Credits
-------

[](#credits)

This library is developed by [Catalin Ciobanu](https://github.com/caciobanu).

License
-------

[](#license)

[![license](https://camo.githubusercontent.com/10e85a5778fe7601504a17ecd18dfa7097f473186b0f947bc10db2d3e4f530e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e7376673f7374796c653d666c61742d737175617265)](LICENSE)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Every ~254 days

Recently: every ~325 days

Total

7

Last Release

2141d ago

Major Versions

v1.0.3 → v2.0.02018-11-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a250b899addfc49a6379116c042fa8b3bb7303e659d500a3cbbfae9a9e11931?d=identicon)[caciobanu](/maintainers/caciobanu)

---

Top Contributors

[![caciobanu](https://avatars.githubusercontent.com/u/3765656?v=4)](https://github.com/caciobanu "caciobanu (15 commits)")[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (2 commits)")[![guilliamxavier](https://avatars.githubusercontent.com/u/7404452?v=4)](https://github.com/guilliamxavier "guilliamxavier (1 commits)")[![magnetik](https://avatars.githubusercontent.com/u/345029?v=4)](https://github.com/magnetik "magnetik (1 commits)")[![wikimatze](https://avatars.githubusercontent.com/u/264708?v=4)](https://github.com/wikimatze "wikimatze (1 commits)")

---

Tags

BDDBehatdeprecation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/caciobanu-behat-deprecation-extension/health.svg)

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

###  Alternatives

[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M12](/packages/laracasts-behat-laravel-extension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.2M4](/packages/bex-behat-extension-driver-locator)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

601.6M5](/packages/ciaranmcnulty-behat-stepthroughextension)[soyuka/contexts

Behatch contexts

282.1M11](/packages/soyuka-contexts)

PHPackages © 2026

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