coderabbi/phpumoji 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

coderabbi/phpumoji

Composer 安装命令:

composer require coderabbi/phpumoji

包简介

PHPUnit Emoji Result Printer

README 文档

README

PHPUnit Emoji Result Printer

Build Status Scrutinizer Code Quality StyleCI PDS Skeleton

Install

Via Composer

$ composer require coderabbi/phpumoji --dev

To enable PHPUnit emoji output, add the following two lines to the opening element of your phpunit.xml:

printerFile="vendor/coderabbi/phpumoji/src/EmojiPrinter.php"
printerClass="Coderabbi\Phpumoji\EmojiPrinter"

Usage

Usage of PHPUnit is unchanged with coderabbi/phpumoji.

Options

Select a Different Emojiset

If you wish to select an emojiset for PHPUnit emoji output, add the following additional line to the opening element of your phpunit.xml, specifying your selection:

emojiset="phpumoji"

Create a Custom Emojiset

The default emojiset is 'phpumoji'; currently that is the only emojiset available (soon, grasshopper... 😎).

If, however, you wish to create your own emojiset for PHPUnit emoji output, simply place an .emojifile in your project root and define your emojiset in the following format:

[phpumoji]
error = bomb
failure = poop
incomplete = construction
risky= game_die
skipped = see_no_evil
pass = elephant

[weird]
error = no_entry
failure = red_flag
incomplete = question
risky= clown
skipped = ghost
pass = monkey

Note that the values in the emojiset are snake-cased emoji short codes without the opening and closing colons; most existing short codes are supported, a list of supported shortcodes will be added soon.

You may choose to override one or more of the packaged emojisets (as in the case of "phumoji", above, which overrides the default emojiset), or you may define your own (as in the case of "weird", above).

Don't forget to update the opening element of your phpunit.xml with emojiset="<your_selection>", just as you would to select one of the non-default packaged emojisets.

The order of precedence is the specified emojiset in .emojifile, the specified emojiset from the packaged emojisets, the "phpumoji" emojiset from your .emojifile, and finally the the "phpumoji" emojiset from the packaged emojisets.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email coderabbi@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 69
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 69
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固