File: 0001-Adapt-to-recent-version-of-PHPUnit-8.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 (35 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Tue, 5 Jan 2021 13:13:45 -0400
Subject: Adapt to recent version of PHPUnit (8)

---
 tests/Pheanstalk/PheanstalkTest.php           | 2 +-
 tests/Pheanstalk/ServerErrorExceptionTest.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Pheanstalk/PheanstalkTest.php b/tests/Pheanstalk/PheanstalkTest.php
index 734e16e..ba92623 100644
--- a/tests/Pheanstalk/PheanstalkTest.php
+++ b/tests/Pheanstalk/PheanstalkTest.php
@@ -18,7 +18,7 @@ use PHPUnit\Framework\TestCase;
  */
 class PheanstalkTest extends TestCase
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         parent::setUp();
 
diff --git a/tests/Pheanstalk/ServerErrorExceptionTest.php b/tests/Pheanstalk/ServerErrorExceptionTest.php
index b0e13c8..59b5ae7 100644
--- a/tests/Pheanstalk/ServerErrorExceptionTest.php
+++ b/tests/Pheanstalk/ServerErrorExceptionTest.php
@@ -13,7 +13,7 @@ class ServerErrorExceptionTest extends TestCase
 {
     private $command;
 
-    public function setUp()
+    public function setUp(): void
     {
         $this->command = new Command\UseCommand('tube5');
     }