File tree Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Expand file tree Collapse file tree 5 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
- vendor
1
+ / vendor
2
2
composer.lock
3
3
composer.phar
Original file line number Diff line number Diff line change @@ -5,6 +5,18 @@ A simple plug-in which allows to you interrupt running PHPUnit tests **gracefull
5
5
``` bash
6
6
composer require --dev esler/phpunit-graceful-interrupt
7
7
```
8
+
9
+ #### For PHPUnit >= 10
10
+ ``` xml
11
+ Add extension to your `phpunit.xml`
12
+ <phpunit >
13
+ <extensions >
14
+ <bootstrap class =" Esler\PHPUnit\GracefulInterruptExtension" />
15
+ </extensions >
16
+ </phpunit >
17
+ ```
18
+
19
+ #### For PHPUnit < 10
8
20
Add listener to your ` phpunit.xml `
9
21
``` xml
10
22
<phpunit >
Original file line number Diff line number Diff line change 13
13
],
14
14
"require" : {
15
15
"ext-pcntl" : " *" ,
16
- "phpunit/phpunit" : " ^7.0||^8.0||^9.0"
16
+ "phpunit/phpunit" : " ^7.0||^8.0||^9.0||^10.0 "
17
17
},
18
18
"autoload" : {
19
19
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<phpunit >
2
- <listeners >
2
+ <!-- < listeners>
3
3
<listener class="Esler\PHPUnit\Listener\GracefulInterruptListener" file="./src/PHPUnit/Listener/GracefulInterruptListener.php" />
4
- </listeners >
4
+ </listeners> -->
5
+ <extensions >
6
+ <bootstrap class =" Esler\PHPUnit\GracefulInterruptExtension" />
7
+ </extensions >
5
8
<testsuites >
6
9
<testsuite name =" Fake testsuite" >
7
10
<directory >./tests/unit/</directory >
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ class GracefulInterruptListener implements TestListener
19
19
{
20
20
use TestListenerDefaultImplementation;
21
21
22
+ /** @var Test */
23
+ private $ test ;
24
+
22
25
/**
23
26
* Constructor
24
27
*/
You can’t perform that action at this time.
0 commit comments