From 2ca0b98b86cc4219e1226c0450e49a36cb195fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20=C5=BBwirek?= Date: Mon, 21 Aug 2023 22:31:39 +0200 Subject: [PATCH] Fix ClientTest mock creation to be compatible with phpunit 10 --- tests/Unit/ClientTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Unit/ClientTest.php b/tests/Unit/ClientTest.php index 957abff..606b695 100644 --- a/tests/Unit/ClientTest.php +++ b/tests/Unit/ClientTest.php @@ -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')