Looking to hire Laravel developers? Try LaraJobs

phpunit-laravel-leash maintained by prinsfrank

Last update
2023/01/26 19:49 (dev-main)
License
Links
Downloads
28

Comments
comments powered by Disqus

PHPUnit Laravel Leash extension

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>