brunty/phpunit-vicious-mockery

A silly extension to PHPUnit to insult you when your tests fail.

0.0.3 2024-02-16 09:44 UTC

This package is auto-updated.

Last update: 2024-11-16 18:16:04 UTC


README

This project is in no way endorsed or associated with PHPUnit, nor is it endorsed or associated with Wizards of the Coast / D&D. It is just an extension to lightly insult you when your tests fail.

Thanks to Froggy for the name idea!

Installation

Install via composer:

composer require brunty/phpunit-vicious-mockery --dev

Then configure it as a PHPUnit extension in your PHPUnit configuration file:

<extensions>
    <bootstrap class="Brunty\PhpunitViciousMockery\Extension"/>
</extensions>

Now when your tests fail it will produce a random insult for you and your failures:

...............................................................  63 / 128 ( 49%)
............................................................... 126 / 128 ( 98%)
F.                                                              128 / 128 (100%)

Vicious Mockery!
class YourCode implements Incompetence