akenlab/phpunit-dojo-extension

Feeds dojo events to an external monitoring tool

dev-main 2022-12-05 15:52 UTC

This package is auto-updated.

Last update: 2024-12-05 20:44:39 UTC


README

# PHPUnit Dojo extension

This extension feeds the backend of your choice with events, to gather statistics about the session.

## How to start

1. install the dependency :

`composer require akenlab/phpunit-dojo-extension`

2. register the extension in your phpunit.xml :

```
...
<extensions>
    <extension class="Akenlab\DojoExtension\DojoExtension">
        <arguments>
            <object class="Akenlab\DojoExtension\Drivers\HttpDriver">
                <arguments>
                    <string>http://host.docker.internal:3000/api/dojoEvent</string>
                </arguments>
            </object>
            <string>TEAM1</string>
        </arguments>
    </extension>
</extensions>
...
```