esler/phpunit-graceful-interrupt

Allow gracefully interrupt running PHPUnit tests

Installs: 77 605

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/esler/phpunit-graceful-interrupt

12.0 2025-08-18 08:25 UTC

This package is auto-updated.

Last update: 2025-10-18 08:56:45 UTC


README

A simple plug-in which allows to you interrupt running PHPUnit tests gracefully.

Instalation

composer require --dev esler/phpunit-graceful-interrupt

For PHPUnit >= 10

Add extension to your `phpunit.xml`
<phpunit>
    <extensions>
        <bootstrap class="Esler\PHPUnit\GracefulInterruptExtension" />
    </extensions>
</phpunit>

For PHPUnit < 10

Add listener to your phpunit.xml

<phpunit>
  <listeners>
    <listener class="Esler\PHPUnit\Listener\GracefulInterruptListener" />
  </listeners>
</phpunit>

Usage

Just hit Ctrl+\ to interrupt running tests. Errors and failures from previous tests will be shown.

More info.

License

MIT