File: Fix-FTBFS-with-phpunit-8.5.13-1.patch

package info (click to toggle)
php-net-sieve 1.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 368 kB
  • sloc: php: 941; xml: 574; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 1,165 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
22
23
24
25
26
27
28
29
30
31
From: Guilhem Moulin <guilhem@debian.org>
Date: Sun, 20 Dec 2020 00:18:37 +0100
Subject: Fix FTBFS with phpunit 8.5.13-1

Forwarded: not-needed
---
 Net_Sieve-1.4.6/tests/SieveTest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Net_Sieve-1.4.6/tests/SieveTest.php b/Net_Sieve-1.4.6/tests/SieveTest.php
index 8e208f1..58e4bbe 100644
--- a/Net_Sieve-1.4.6/tests/SieveTest.php
+++ b/Net_Sieve-1.4.6/tests/SieveTest.php
@@ -57,7 +57,7 @@ class SieveTest extends PHPUnit\Framework\TestCase
     // contains the object handle of the string class
     protected $fixture;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!file_exists(dirname(__FILE__) . '/config.php')) {
             $this->markTestSkipped('Test configuration incomplete. Copy config.php.dist to config.php.');
@@ -74,7 +74,7 @@ class SieveTest extends PHPUnit\Framework\TestCase
             'test script4' => file_get_contents(dirname(__FILE__) . '/largescript.siv'));
     }
     
-    protected function tearDown()
+    protected function tearDown(): void
     {
         // Delete the instance.
         unset($this->fixture);