File: 0004-Modernize-PHPUnit-syntax.patch

package info (click to toggle)
php-pda-pheanstalk 4.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 608 kB
  • sloc: php: 2,658; xml: 60; makefile: 15
file content (21 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;