定制 jeroen/nyancat-phpunit-resultprinter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jeroen/nyancat-phpunit-resultprinter

最新稳定版本:v2.4.0

Composer 安装命令:

composer require jeroen/nyancat-phpunit-resultprinter

包简介

Nyan Cat result printer for PHPUnit

README 文档

README

GitHub Workflow Status Latest Stable Version Download count

Video of the Nyan Cat result printer for PHPUnit

Requirements

The Nyan Cat result printer for PHPUnit requires a terminal emulator with support for ANSI escape sequences, including color and cursor control.

PHPUnit PHP ~=[,,_,,]:3
Nyan v2.4 9.x, 8.x, 7.x >=7.1
Nyan v2.3 8.x, 7.x ~7.1
Nyan v2.1 & 2.2 7.x ~7.1
Nyan v2.0 6.x ~7.0
Nyan v1.3 4.x, 5.x ~7.0|^5.3.3

NOTE: By default, the Windows console does not support ANSI escape sequences. If you'd like to use the Nyan Cat result printer on Windows, you may want to try one of the following solutions:

Installation

The recommended way to install the Nyan Cat result printer for PHPUnit is through composer. Just create a composer.json file and run the composer install command to install it:

{
    "require-dev": {
        "jeroen/nyancat-phpunit-resultprinter": "^2.0"
    }
}

Once installed, add the following attributes to the <phpunit> element in your phpunit.xml file:

printerFile="vendor/jeroen/nyancat-phpunit-resultprinter/src/NyanCat/PHPUnit/ResultPrinter.php"
printerClass="NyanCat\PHPUnit\ResultPrinter"

NOTE: If PHPUnit was not installed via composer, you also need to include the composer autoloader. 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"

Switching over from whatthejeff

To switch from whatthejeff/nyancat-phpunit-resultprinter to jeroen/nyancat-phpunit-resultprinter, you need to

  1. Update your composer.json: replace whatthejeff/nyancat by jeroen/nyancat
  2. Update your phpunit.xml: replace vendor/whatthejeff/ by vendor/jeroen/
  3. Run composer update

Tests

To run the test suite, you need composer.

$ composer install
$ composer test

Acknowledgements

The Nyan Cat result printer for PHPUnit was heavily inspired by the glorious mocha/nyan.js.

License

The Nyan Cat result printer for PHPUnit is licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 21
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-13