PHPackages                             atoum/deprecated-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. atoum/deprecated-extension

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

atoum/deprecated-extension
==========================

atoum extension to avoid failures on deprecated errors

1.0.0(10y ago)12.9k4[1 issues](https://github.com/atoum/deprecated-extension/issues)MITPHP

Since Dec 26Pushed 7y ago5 watchersCompare

[ Source](https://github.com/atoum/deprecated-extension)[ Packagist](https://packagist.org/packages/atoum/deprecated-extension)[ Docs](http://www.atoum.org)[ RSS](/packages/atoum-deprecated-extension/feed)WikiDiscussions master Synced 2mo ago

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

atoum/deprecated-extension [![Build Status](https://camo.githubusercontent.com/b6138a6d032df353614c5d000f1cb90b9c25d1d5aea00655bb01f1f3d8681d7e/68747470733a2f2f7472617669732d63692e6f72672f61746f756d2f646570726563617465642d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/atoum/deprecated-extension)
========================================================================================================================================================================================================================================================================================================================================

[](#atoumdeprecated-extension-)

This extension allows you to avoid having `E_USER_DEPRECATED` errors treated errors, and display the list of deprecated calls at the end of the tests.

When your library uses the `trigger_error` function to indicate that the method is deprecated, or when you use a class that does that in your test, you may not want to see your tests fail. This extension will allow to have your atoum's test pass event if you have deprecated calls, so will be able to migrate the deprecated calls at your own pace.

Example
-------

[](#example)

Let's take this example :

```
