Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

phpunit-pretty-print

> 测试质量
Open source

✅  Make your PHPUnit output beautiful

184 stars0 likes2 views
WebsiteGitHub

About

✅  Make your PHPUnit output beautiful

phpunit-pretty-print

✅ Make your PHPUnit output beautiful

Installation

bash
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:

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

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

xml

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.

xml

    
        
    

License

MIT © Sempro AS

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPphpphp7phpunitphpunit-pretty-print

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category测试质量
PricingOpen source

> Related tools

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.