tomasvotruba/phpunit-json-result-printer

Print your PHPUnit result in JSON, so other tool can pipe it

0.2.1 2024-11-04 13:18 UTC

This package is auto-updated.

Last update: 2024-12-04 13:35:01 UTC


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>