File: 0001-Compatibility-with-recent-PHPUnit-8.patch

package info (click to toggle)
php-composer-semver 3.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 476 kB
  • sloc: php: 4,206; makefile: 6
file content (63 lines) | stat: -rw-r--r-- 2,488 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 30 May 2020 14:12:56 -1000
Subject: Compatibility with recent PHPUnit (8)

---
 tests/Constraint/ConstraintTest.php          | 2 +-
 tests/Constraint/MatchAllConstraintTest.php  | 2 +-
 tests/Constraint/MatchNoneConstraintTest.php | 2 +-
 tests/Constraint/MultiConstraintTest.php     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Constraint/ConstraintTest.php b/tests/Constraint/ConstraintTest.php
index e3a5a4f..79d0304 100644
--- a/tests/Constraint/ConstraintTest.php
+++ b/tests/Constraint/ConstraintTest.php
@@ -25,7 +25,7 @@ class ConstraintTest extends TestCase
      */
     protected $versionProvide;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->constraint = new Constraint('==', '1');
         $this->versionProvide = new Constraint('==', 'dev-foo');
diff --git a/tests/Constraint/MatchAllConstraintTest.php b/tests/Constraint/MatchAllConstraintTest.php
index 21e5978..eea5a2a 100644
--- a/tests/Constraint/MatchAllConstraintTest.php
+++ b/tests/Constraint/MatchAllConstraintTest.php
@@ -24,7 +24,7 @@ class MatchAllConstraintTest extends TestCase
      */
     protected $matchAllConstraint;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->versionProvide = new Constraint('==', '1.1');
         $this->matchAllConstraint = new MatchAllConstraint();
diff --git a/tests/Constraint/MatchNoneConstraintTest.php b/tests/Constraint/MatchNoneConstraintTest.php
index 8e7d73c..9af8238 100644
--- a/tests/Constraint/MatchNoneConstraintTest.php
+++ b/tests/Constraint/MatchNoneConstraintTest.php
@@ -20,7 +20,7 @@ class MatchNoneConstraintTest extends TestCase
      */
     protected $matchNoneConstraint;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->matchNoneConstraint = new MatchNoneConstraint();
     }
diff --git a/tests/Constraint/MultiConstraintTest.php b/tests/Constraint/MultiConstraintTest.php
index fcc83ed..a390622 100644
--- a/tests/Constraint/MultiConstraintTest.php
+++ b/tests/Constraint/MultiConstraintTest.php
@@ -26,7 +26,7 @@ class MultiConstraintTest extends TestCase
      */
     protected $versionRequireEnd;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->versionRequireStart = new Constraint('>', '1.0');
         $this->versionRequireEnd = new Constraint('<', '1.2');