PHPackages                             backendtea/failuretest - 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. backendtea/failuretest

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

backendtea/failuretest
======================

Allow failing PHPUnit tests and keep a close eye on issues until they are fixed.

v1.0.0(8y ago)0121MITPHPPHP ^5.6 || ^7.0

Since Jan 23Pushed 8y agoCompare

[ Source](https://github.com/BackEndTea/FailureTest)[ Packagist](https://packagist.org/packages/backendtea/failuretest)[ RSS](/packages/backendtea-failuretest/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

FailureTest
===========

[](#failuretest)

Allow failing PHPUnit tests and keep a close eye on issues until they are fixed.

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

[](#installation)

- Using [Composer](https://getcomposer.org/): `composer require backendtea/failuretest`

Or simply copy the AllowFailure.php into your project and include it yourself.

Requirements
------------

[](#requirements)

- PHP version 5.6 or higher
- PHPUnit version 5.0 or higher.

Usage
-----

[](#usage)

**These traits make us of PHPUnits `tearDown()` function. If you override it, don't forget to call `parent::tearDown();`**

Any test that has failed will show up as incomplete, with its original failure message attached. Once a test actually passes all its criteria, it will be marked as a failure, with an error message explaining you can move it to the normal tests.

### AllowFailure

[](#allowfailure)

```
