codelicia/ nyancat
Nyan Cat 结果打印机,用于PHPUnit
2.0.1
2020-02-24 18:01 UTC
Requires
- php: ^7.4
- whatthejeff/nyancat-scoreboard: ~1.1
Requires (Dev)
- phpunit/phpunit: ^9.0.0
README
来自@whatthejeff的出色工作的分支!
要求
PHPUnit的Nyan Cat结果打印机需要
- PHP 7.4+。
- PHPUnit 9+。
- 支持ANSI转义序列的终端仿真器,包括颜色和光标控制。
安装
安装PHPUnit的Nyan Cat结果打印机推荐方法是通过composer。只需创建一个composer.json
文件并运行composer install
命令即可安装。
{ "require-dev": { "codelicia/nyancat": "^2.0" } }
安装完成后,将以下属性添加到您的phpunit.xml
文件中的<phpunit>
元素中
printerFile="vendor/codelicia/nyancat/src/NyanCatPrinter.php"
printerClass="Codelicia\NyanCat\NyanCatPrinter"
注意:如果PHPUnit不是通过composer安装的,您还需要包含composer自动加载器。一种简单的方法是将以下属性添加到您的phpunit.xml
文件中的<phpunit>
元素中。
bootstrap="vendor/autoload.php"
许可证
PHPUnit的Nyan Cat结果打印机采用MIT许可证。