tomasvotruba / phpunit-json-result-printer
Print your PHPUnit result in JSON, so other tool can pipe it
Package info
github.com/TomasVotruba/phpunit-json-result
pkg:composer/tomasvotruba/phpunit-json-result-printer
0.2.1
2024-11-04 13:18 UTC
Requires
- php: ^8.1
- phpunit/phpunit: ^10.5|^11.0
Requires (Dev)
- rector/rector: ^1.2
- symplify/easy-coding-standard: ^12.3
- tracy/tracy: ^2.10
README
Other PHP CLI tool can communicate with API using JSON. Why not PHPUnit?
This package requires PHPUnit 10+ and PHP 8.1+.
Install
composer require --dev tomasvotruba/phpunit-json-result-printer
Usage
Register extension in your phpunit.xml file:
<extensions> <bootstrap class="TomasVotruba\PHPUnitJsonResultPrinter\PHPUnitJsonResultPrinterExtension" /> </extensions>