prinsfrank/phpunit-laravel-leash

v0.1.1 2023-01-26 18:49 UTC

This package is auto-updated.

Last update: 2024-11-26 22:34:43 UTC


README

This package implements the Laravel Leash package as a PHPUnit listener.

To get started, run the following command:

composer require prinsfrank/phpunit-laravel-leash --dev

And enable the extension by adding the following lines in you phpunit.xml.dist;

<extensions>
    <extension class="PrinsFrank\PHPUnitLaravelLeash\Plugin" />
</extensions>

The extension is enabled for all test in 'Unit' namespaces by default. If you want to modify this, you can overwrite the pattern:

<extensions>
    <extension class="PrinsFrank\PHPUnitLaravelLeash\Plugin">
        <arguments>
            <string>/\Unit\/</string>
        </arguments>
    </extension>
</extensions>