The Emoji result printer for PHPUnit requires:
- PHP 5.3.3 or later.
- A terminal emulator with emoji support.
The recommended way to install the Emoji result printer for PHPUnit is
through composer. Just create a composer.json
file
and run the php composer.phar install
command to install it:
{
"require-dev": {
"whatthejeff/emoji-phpunit-resultprinter": "~1.0"
}
}
NOTE: If PHPUnit was not installed via composer, you also need to include
the composer autoloader when running your tests. One easy way to do this is to
add the following attribute to the <phpunit>
element in your phpunit.xml
file:
bootstrap="vendor/autoload.php"
The available printers are listed below. To enable one, just copy the
attributes from the code section under the title and paste it to the
<phpunit>
element in your phpunit.xml
file.
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/ResultPrinter.php"
printerClass="Emoji\PHPUnit\ResultPrinter"
- Error: 💥
- Failure: 🚨
- Incomplete: 🚧
- Risky:
⚠️ - Skipped: 🚩
- Pass: ⭐
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/FaceResultPrinter.php"
printerClass="Emoji\PHPUnit\FaceResultPrinter"
- Error: 😲
- Failure: 😡
- Incomplete: 😶
- Risky: 😬
- Skipped: 😑
- Pass: 😊
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/WeatherResultPrinter.php"
printerClass="Emoji\PHPUnit\WeatherResultPrinter"
- Error: ⚡
- Failure: ☔
- Incomplete: ☁️
- Risky: ⛅
- Skipped: 🌀
- Pass: ☀️
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/CatResultPrinter.php"
printerClass="Emoji\PHPUnit\CatResultPrinter"
- Error: 🙀
- Failure: 😿
- Incomplete: 🐱
- Risky: 😾
- Skipped: 😼
- Pass: 😻
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/FruitResultPrinter.php"
printerClass="Emoji\PHPUnit\FruitResultPrinter"
- Error: 🍎
- Failure: 🍅
- Incomplete: 🍋
- Risky: 🍊
- Skipped: 🍈
- Pass: 🍏
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/HeartResultPrinter.php"
printerClass="Emoji\PHPUnit\HeartResultPrinter"
- Error: 💔
- Failure: 💔
- Incomplete: 💛
- Risky: 💚
- Skipped: 💙
- Pass: ❤️
printerFile="vendor/whatthejeff/emoji-phpunit-resultprinter/src/Emoji/PHPUnit/HandResultPrinter.php"
printerClass="Emoji\PHPUnit\HandResultPrinter"
- Error: 👊
- Failure: 👊
- Incomplete: ✋
- Risky: ✋
- Skipped: ✊
- Pass: 👍
To run the test suite, you need composer.
$ php composer.phar install
$ vendor/bin/phpunit
The Emoji result printer for PHPUnit is licensed under the MIT license.