承接 sempro/phpunit-pretty-print 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sempro/phpunit-pretty-print

最新稳定版本:1.4.0

Composer 安装命令:

composer require sempro/phpunit-pretty-print

包简介

Prettify PHPUnit output

README 文档

README

✅ Make your PHPUnit output beautiful

Build Status Packagist Packagist PRs Welcome psr-2

Installation

composer require sempro/phpunit-pretty-print --dev

This package requires >=7.0.0 of PHPUnit.

If you're running on 6.x, please use version 1.0.3.

If you are running on 9.x use the \Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9 class

Usage

You can specify the printer to use on the phpunit command line:

For PhpUnit < 9, use the following:

php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinter' tests/

For PhpUnit >= 9, use the following:

php vendor/bin/phpunit --printer 'Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9' tests/

Optionally, you can add it to your project's phpunit.xml file instead:

<phpunit
    bootstrap="bootstrap.php"
    colors="true"
    printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinterForPhpUnit9">

phpunit-pretty-print

Optional

To view progress while tests are running you can set PHPUNIT_PRETTY_PRINT_PROGRESS=true as environment variable on your server or within your phpunit.xml config file.

<phpunit>
    <php>
        <env name="PHPUNIT_PRETTY_PRINT_PROGRESS" value="true" />
    </php>
</phpunit>

License

MIT © Sempro AS

统计信息

  • 总下载量: 3.64M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 188
  • 点击次数: 1
  • 依赖项目数: 697
  • 推荐数: 1

GitHub 信息

  • Stars: 187
  • Watchers: 7
  • Forks: 25
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04