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
Requires
- php: ~8.2.0 || ~8.3.0
- phpunit/phpunit: ^10.0.0 || ^11.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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