prinsfrank/phpunit-laravel-leash

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

This package is auto-updated.

Last update: 2024-10-26 22:18:30 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>