File: 0002-Support-PHPUnit-7.patch

package info (click to toggle)
php-oscarotero-gettext 4.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,652 kB
  • sloc: php: 5,231; xml: 22; javascript: 18; makefile: 14
file content (50 lines) | stat: -rw-r--r-- 1,639 bytes parent folder | download | duplicates (3)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From: James Valleroy <jvalleroy@mailbox.org>
Date: Thu, 16 Jul 2020 09:58:42 -0400
Subject: Support PHPUnit 7+

Forwarded: not-needed
---
 tests/MergeEntriesTest.php      | 2 +-
 tests/MergeHeadersTest.php      | 2 +-
 tests/MergeTranslationsTest.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/MergeEntriesTest.php b/tests/MergeEntriesTest.php
index 09f01f1..5f5c381 100644
--- a/tests/MergeEntriesTest.php
+++ b/tests/MergeEntriesTest.php
@@ -10,7 +10,7 @@ class MergeEntriesTest extends AbstractTest
     protected $t1;
     protected $t2;
 
-    public function setUp()
+    protected function setUp(): void
     {
         $this->t1 = new Translations();
         $this->t2 = new Translations();
diff --git a/tests/MergeHeadersTest.php b/tests/MergeHeadersTest.php
index 56858d9..1f02c95 100644
--- a/tests/MergeHeadersTest.php
+++ b/tests/MergeHeadersTest.php
@@ -10,7 +10,7 @@ class MergeHeadersTest extends AbstractTest
     protected $t1;
     protected $t2;
 
-    public function setUp()
+    protected function setUp(): void
     {
         $this->t1 = new Translations();
         $this->t2 = new Translations();
diff --git a/tests/MergeTranslationsTest.php b/tests/MergeTranslationsTest.php
index f2178d7..1726f61 100644
--- a/tests/MergeTranslationsTest.php
+++ b/tests/MergeTranslationsTest.php
@@ -10,7 +10,7 @@ class MergeTranslationsTest extends AbstractTest
     protected $t1;
     protected $t2;
 
-    public function setUp()
+    protected function setUp(): void
     {
         $this->t1 = new Translation(null, 'original');
         $this->t2 = new Translation(null, 'original');