Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

esler/phpunit-graceful-interrupt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

This projects has been abandoned after release of PHPUnit 13.2 which introduced graceful interrupt already build-in.

Description

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

About

Allow gracefully interrupt running PHPUnit tests

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages