tomasvotruba/phpunit-json-result-printer

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

0.1.2 2024-04-10 20:01 UTC

This package is auto-updated.

Last update: 2024-04-12 17:15:54 UTC


README

Other PHP CLI tool can communicate with API using JSON. Why not PHPUnit?

Install

composer require --dev tomasvotruba/phpunit-json-result-printer

Usage

Register extension in your phpunit.xml file:

<extensions>
    <bootstrap class="TomasVotruba\PHPUnitJsonResultPrinter\PHPUnitJsonResultPrinterExtension" />
</extensions>