Skip to content

Commit c5fca29

Browse files
committed
chore: allow phpunit 11
Additionally, `->getMockForAbstractClass()` has been deprecated and therefore substituted.
1 parent a8e83a7 commit c5fca29

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"infection/infection": "^0.29.6",
3535
"phpstan/extension-installer": "^1.4",
3636
"phpstan/phpstan": "1.11.10",
37-
"phpunit/phpunit": "^10.5",
37+
"phpunit/phpunit": "^10.5 || ^11.3",
3838
"rector/rector": "1.2.3",
3939
"symplify/phpstan-rules": "^13.0",
4040
"tomasvotruba/cognitive-complexity": "^0.2.3"

tests/Unit/Client/ClientDecoratorTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ class ClientDecoratorTest extends TestCase
2727
protected function setUp(): void
2828
{
2929
$this->client = $this->createMock(ClientInterface::class);
30-
$this->subject = $this->getMockForAbstractClass(
31-
ClientDecorator::class,
32-
[$this->client],
33-
);
30+
$this->subject = new class($this->client) extends ClientDecorator {};
3431
}
3532

3633
#[Test]

0 commit comments

Comments
 (0)