Skip to content

Commit d8efc7b

Browse files
author
Ondřej Ešler
committed
add support for PHPUnit 11
1 parent fe058d1 commit d8efc7b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"ext-pcntl": "*",
16-
"phpunit/phpunit": "^7.0||^8.0||^9.0||^10.0"
16+
"phpunit/phpunit": "^7.0||^8.0||^9.0||^10.0||^11.0"
1717
},
1818
"autoload": {
1919
"psr-4": {

tests/unit/PHPUnit/Listener/GracefulInterruptListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Esler\PHPUnit\Listener;
33

44
use PHPUnit\Framework\TestCase;
5+
use PHPUnit\Framework\Attributes\Before;
56

67
/**
78
* Fake test suite with some long tests. It servers like demonstration
@@ -18,6 +19,7 @@ class GracefulInterruptListenerTest extends TestCase
1819
/**
1920
* @before
2021
*/
22+
#[Before]
2123
protected function disableNestingProtection() {
2224
// disable nesting protection for ackermann function
2325
ini_set('xdebug.max_nesting_level', -1);

0 commit comments

Comments
 (0)