jackbayliss / php-unit-art
ascii art for phpunit, and maybe more!
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.68
- phpunit/phpunit: ^10.0
README
This package adds the ability to show art at the end of the PHP Unit output
So how does it work?
Pretty easily, all you need to do is install it via composer require jackbayliss/php-unit-art
just add the following into your phpunit.xml.
<extensions>
<bootstrap class="JackBayliss\PhpUnitArt\Extensions\AsciiExtension">
</bootstrap>
</extensions>
How can I define more art?!
Well, for now you can just add a PR of whatever you want to add into the art folder, (the default is sebbyb) - but you can define what art you want to use via the parameter xml as long as its in the art folder. This means you can also keep your own art in that folder locally for your own project, if you didn't want to PR anything.
<extensions>
<bootstrap class="JackBayliss\PhpUnitArt\Extensions\AsciiExtension">
<parameter name="art" value="sebbyb"/>
</bootstrap>
</extensions>
Well, what other art can I add?!
Right now, it's limited to ASCII, or whatever we add into the art folder, but feel free to go wild. PR's are welcome.
Contributing
Please review the contributing.md before creating a PR
phpunit is created by Sebastian (hence the default sebby art), you should check it out if you're not sure what it is!
All rights etc, to him.