Skip to content

Commit

Permalink
Fix ClientTest mock creation to be compatible with phpunit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
zwirek committed Aug 21, 2023
1 parent ef19cc3 commit 2ca0b98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Unit/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ function (Exception $e) use (&$exception) {

public function testFailedDNSLookupEarlyRejection()
{
$executor = $this->getMockBuilder(ExecutorInterface::class)
->setMethods(['query'])
->getMock();
$executor = $this->createMock(ExecutorInterface::class);

$executor
->method('query')
Expand Down

0 comments on commit 2ca0b98

Please sign in to comment.