Skip to content

Commit

Permalink
chore: allow phpunit 11
Browse files Browse the repository at this point in the history
Additionally, `->getMockForAbstractClass()` has been deprecated and therefore substituted.
  • Loading branch information
brotkrueml committed Aug 15, 2024
1 parent a8e83a7 commit c5fca29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"infection/infection": "^0.29.6",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "1.11.10",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^10.5 || ^11.3",
"rector/rector": "1.2.3",
"symplify/phpstan-rules": "^13.0",
"tomasvotruba/cognitive-complexity": "^0.2.3"
Expand Down
5 changes: 1 addition & 4 deletions tests/Unit/Client/ClientDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ class ClientDecoratorTest extends TestCase
protected function setUp(): void
{
$this->client = $this->createMock(ClientInterface::class);
$this->subject = $this->getMockForAbstractClass(
ClientDecorator::class,
[$this->client],
);
$this->subject = new class($this->client) extends ClientDecorator {};
}

#[Test]
Expand Down

0 comments on commit c5fca29

Please sign in to comment.