File: use-static-data-providers-for-phpunit-10-support.patch

package info (click to toggle)
eluceo-ical 0.16.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 596 kB
  • sloc: php: 2,894; makefile: 27; sh: 7
file content (106 lines) | stat: -rw-r--r-- 4,033 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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
From: Athos Ribeiro <athoscribeiro@gmail.com>
Date: Wed, 12 Jul 2023 10:18:23 -0300
Subject: [PATCH 2/2] Use static data providers for phpunit 10 support

Bug-Debian: https://bugs.debian.org/1039748
Forwarded: https://github.com/markuspoerschke/iCal/pull/540
Last-Update: 2023-07-12
---
 tests/Eluceo/iCal/ParameterBagTest.php                  |  2 +-
 tests/Eluceo/iCal/Property/ArrayValueTest.php           |  2 +-
 tests/Eluceo/iCal/Property/Event/RecurrenceRuleTest.php | 14 +++++++-------
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/Eluceo/iCal/ParameterBagTest.php b/tests/Eluceo/iCal/ParameterBagTest.php
index c00eaea..e7a9e62 100644
--- a/tests/Eluceo/iCal/ParameterBagTest.php
+++ b/tests/Eluceo/iCal/ParameterBagTest.php
@@ -20,7 +20,7 @@ class ParameterBagTest extends TestCase
         );
     }
 
-    public function escapedParamsDataProvider()
+    public static function escapedParamsDataProvider()
     {
         return [
             'No escaping necessary' => ['test string', 'TEST=test string'],
diff --git a/tests/Eluceo/iCal/Property/ArrayValueTest.php b/tests/Eluceo/iCal/Property/ArrayValueTest.php
index ee3b33d..e9d8130 100644
--- a/tests/Eluceo/iCal/Property/ArrayValueTest.php
+++ b/tests/Eluceo/iCal/Property/ArrayValueTest.php
@@ -16,7 +16,7 @@ class ArrayValueTest extends TestCase
         $this->assertEquals($expectedOutput, $arrayValue->getEscapedValue());
     }
 
-    public function arrayValuesProvider()
+    public static function arrayValuesProvider()
     {
         return array(
             array(array(), ''),
diff --git a/tests/Eluceo/iCal/Property/Event/RecurrenceRuleTest.php b/tests/Eluceo/iCal/Property/Event/RecurrenceRuleTest.php
index dedcf74..a19783e 100644
--- a/tests/Eluceo/iCal/Property/Event/RecurrenceRuleTest.php
+++ b/tests/Eluceo/iCal/Property/Event/RecurrenceRuleTest.php
@@ -104,7 +104,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYMONTH=1', $rule->getEscapedValue());
     }
 
-    public function invalidMonthProvider()
+    public static function invalidMonthProvider()
     {
         return [
             ['invalid_month'],
@@ -136,7 +136,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYWEEKNO=1', $rule->getEscapedValue());
     }
 
-    public function invalidByWeekNoProvider()
+    public static function invalidByWeekNoProvider()
     {
         return [
             [0],
@@ -167,7 +167,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYYEARDAY=1', $rule->getEscapedValue());
     }
 
-    public function invalidByYearDayProvider()
+    public static function invalidByYearDayProvider()
     {
         return [
             [0],
@@ -198,7 +198,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYMONTHDAY=1', $rule->getEscapedValue());
     }
 
-    public function invalidByMonthDayProvider()
+    public static function invalidByMonthDayProvider()
     {
         return [
             [0],
@@ -229,7 +229,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYHOUR=1', $rule->getEscapedValue());
     }
 
-    public function invalidByHourProvider()
+    public static function invalidByHourProvider()
     {
         return [
             [0.0001],
@@ -259,7 +259,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYMINUTE=1', $rule->getEscapedValue());
     }
 
-    public function invalidByMinuteProvider()
+    public static function invalidByMinuteProvider()
     {
         return [
             [0.0001],
@@ -289,7 +289,7 @@ class RecurrenceRuleTest extends TestCase
         $this->assertSame('FREQ=YEARLY;INTERVAL=1;BYSECOND=1', $rule->getEscapedValue());
     }
 
-    public function invalidBySecondProvider()
+    public static function invalidBySecondProvider()
     {
         return [
             [0.0001],