From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 6 Mar 2025 07:55:10 +0100
Subject: Modernize PHPUnit syntax

---
 tests/Pheanstalk/ServerErrorExceptionTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Pheanstalk/ServerErrorExceptionTest.php b/tests/Pheanstalk/ServerErrorExceptionTest.php
index 7f83781..e1e9bd2 100644
--- a/tests/Pheanstalk/ServerErrorExceptionTest.php
+++ b/tests/Pheanstalk/ServerErrorExceptionTest.php
@@ -28,7 +28,7 @@ class ServerErrorExceptionTest extends TestCase
 
         $socket->expects($this->any())
             ->method('getLine')
-            ->will($this->returnValue($line));
+            ->willReturn($line);
 
         $connection = new Connection(new class($socket) implements SocketFactoryInterface {
             private $socket;
