1happyplace/phpunit-colors
最新稳定版本:v1.2
Composer 安装命令:
composer require 1happyplace/phpunit-colors
包简介
Class that adds color to PHPUnit testing output using ANSI escape coding
README 文档
README
#PHPUnitColors\Display# clio.1happyplace.com/utilities/phpunit-color-display.html
The Display class outputs colored output that will work on virtually any terminal. It utilizes the escape coding that goes back to the days of the DEC VT-100. It can be used anywhere, but is geared toward messages during PHPUnit tests cases.
It is a standalone static class with no dependencies.
The following code will create the output below:
// echo out the escaped strings to create different levels of warnings
echo Display::warning("Warning!");
echo Display::caution("Caution...");
echo Display::OK("OK to go!");
// place the escaped string in the $message field to light up your output
$this->assertSame("one","two",Display::caution("This assertion has intentionally failed"));
统计信息
- 总下载量: 46.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-13