File: 0002-Rename-Abstract-Test-into-Abstract-TestCase.patch

package info (click to toggle)
php-symfony-polyfill 1.33.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,456 kB
  • sloc: php: 127,248; makefile: 70
file content (296 lines) | stat: -rw-r--r-- 12,188 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 4 May 2025 10:57:53 +0200
Subject: =?utf-8?q?Rename_Abstract=E2=80=A6Test_into_Abstract=E2=80=A6TestC?=
 =?utf-8?q?ase?=

---
 .../Icu/{AbstractCollatorTest.php => AbstractCollatorTestCase.php}    | 2 +-
 tests/Intl/Icu/{AbstractIcuTest.php => AbstractIcuTestCase.php}       | 2 +-
 ...ntlDateFormatterTest.php => AbstractIntlDateFormatterTestCase.php} | 2 +-
 tests/Intl/Icu/{AbstractLocaleTest.php => AbstractLocaleTestCase.php} | 2 +-
 ...actNumberFormatterTest.php => AbstractNumberFormatterTestCase.php} | 2 +-
 tests/Intl/Icu/CollatorTest.php                                       | 3 ++-
 tests/Intl/Icu/IcuTest.php                                            | 3 ++-
 tests/Intl/Icu/IntlDateFormatterTest.php                              | 3 ++-
 tests/Intl/Icu/LocaleTest.php                                         | 2 +-
 tests/Intl/Icu/NumberFormatterTest.php                                | 2 +-
 tests/Intl/Icu/Verification/CollatorTest.php                          | 4 ++--
 tests/Intl/Icu/Verification/IcuTest.php                               | 4 ++--
 tests/Intl/Icu/Verification/IntlDateFormatterTest.php                 | 4 ++--
 tests/Intl/Icu/Verification/LocaleTest.php                            | 4 ++--
 tests/Intl/Icu/Verification/NumberFormatterTest.php                   | 4 ++--
 15 files changed, 23 insertions(+), 20 deletions(-)
 rename tests/Intl/Icu/{AbstractCollatorTest.php => AbstractCollatorTestCase.php} (96%)
 rename tests/Intl/Icu/{AbstractIcuTest.php => AbstractIcuTestCase.php} (94%)
 rename tests/Intl/Icu/{AbstractIntlDateFormatterTest.php => AbstractIntlDateFormatterTestCase.php} (99%)
 rename tests/Intl/Icu/{AbstractLocaleTest.php => AbstractLocaleTestCase.php} (91%)
 rename tests/Intl/Icu/{AbstractNumberFormatterTest.php => AbstractNumberFormatterTestCase.php} (99%)

diff --git a/tests/Intl/Icu/AbstractCollatorTest.php b/tests/Intl/Icu/AbstractCollatorTestCase.php
similarity index 96%
rename from tests/Intl/Icu/AbstractCollatorTest.php
rename to tests/Intl/Icu/AbstractCollatorTestCase.php
index 166741b..d8bbfa9 100644
--- a/tests/Intl/Icu/AbstractCollatorTest.php
+++ b/tests/Intl/Icu/AbstractCollatorTestCase.php
@@ -19,7 +19,7 @@ use Symfony\Polyfill\Intl\Icu\Collator;
  *
  * @author Bernhard Schussek <bschussek@gmail.com>
  */
-abstract class AbstractCollatorTest extends TestCase
+abstract class AbstractCollatorTestCase extends TestCase
 {
     /**
      * @dataProvider asortProvider
diff --git a/tests/Intl/Icu/AbstractIcuTest.php b/tests/Intl/Icu/AbstractIcuTestCase.php
similarity index 94%
rename from tests/Intl/Icu/AbstractIcuTest.php
rename to tests/Intl/Icu/AbstractIcuTestCase.php
index b676ca0..eee2c50 100644
--- a/tests/Intl/Icu/AbstractIcuTest.php
+++ b/tests/Intl/Icu/AbstractIcuTestCase.php
@@ -18,7 +18,7 @@ use PHPUnit\Framework\TestCase;
  *
  * @author Bernhard Schussek <bschussek@gmail.com>
  */
-abstract class AbstractIcuTest extends TestCase
+abstract class AbstractIcuTestCase extends TestCase
 {
     public static function errorNameProvider()
     {
diff --git a/tests/Intl/Icu/AbstractIntlDateFormatterTest.php b/tests/Intl/Icu/AbstractIntlDateFormatterTestCase.php
similarity index 99%
rename from tests/Intl/Icu/AbstractIntlDateFormatterTest.php
rename to tests/Intl/Icu/AbstractIntlDateFormatterTestCase.php
index 7761353..bf3249b 100644
--- a/tests/Intl/Icu/AbstractIntlDateFormatterTest.php
+++ b/tests/Intl/Icu/AbstractIntlDateFormatterTestCase.php
@@ -21,7 +21,7 @@ use Symfony\Polyfill\Intl\Icu\IntlDateFormatter;
  *
  * @author Bernhard Schussek <bschussek@gmail.com>
  */
-abstract class AbstractIntlDateFormatterTest extends TestCase
+abstract class AbstractIntlDateFormatterTestCase extends TestCase
 {
     protected function setUp(): void
     {
diff --git a/tests/Intl/Icu/AbstractLocaleTest.php b/tests/Intl/Icu/AbstractLocaleTestCase.php
similarity index 91%
rename from tests/Intl/Icu/AbstractLocaleTest.php
rename to tests/Intl/Icu/AbstractLocaleTestCase.php
index 20dde71..4ec15e2 100644
--- a/tests/Intl/Icu/AbstractLocaleTest.php
+++ b/tests/Intl/Icu/AbstractLocaleTestCase.php
@@ -18,7 +18,7 @@ use PHPUnit\Framework\TestCase;
  *
  * @author Bernhard Schussek <bschussek@gmail.com>
  */
-abstract class AbstractLocaleTest extends TestCase
+abstract class AbstractLocaleTestCase extends TestCase
 {
     public function testSetDefault()
     {
diff --git a/tests/Intl/Icu/AbstractNumberFormatterTest.php b/tests/Intl/Icu/AbstractNumberFormatterTestCase.php
similarity index 99%
rename from tests/Intl/Icu/AbstractNumberFormatterTest.php
rename to tests/Intl/Icu/AbstractNumberFormatterTestCase.php
index e5f4707..8dbc41c 100644
--- a/tests/Intl/Icu/AbstractNumberFormatterTest.php
+++ b/tests/Intl/Icu/AbstractNumberFormatterTestCase.php
@@ -20,7 +20,7 @@ use Symfony\Polyfill\Intl\Icu\NumberFormatter;
  * Note that there are some values written like -2147483647 - 1. This is the lower 32bit int max and is a known
  * behavior of PHP.
  */
-abstract class AbstractNumberFormatterTest extends TestCase
+abstract class AbstractNumberFormatterTestCase extends TestCase
 {
     protected function setUp(): void
     {
diff --git a/tests/Intl/Icu/CollatorTest.php b/tests/Intl/Icu/CollatorTest.php
index dcb6a87..aadb20e 100644
--- a/tests/Intl/Icu/CollatorTest.php
+++ b/tests/Intl/Icu/CollatorTest.php
@@ -15,11 +15,12 @@ use Symfony\Polyfill\Intl\Icu\Collator;
 use Symfony\Polyfill\Intl\Icu\Exception\MethodArgumentValueNotImplementedException;
 use Symfony\Polyfill\Intl\Icu\Exception\MethodNotImplementedException;
 use Symfony\Polyfill\Intl\Icu\Icu;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractCollatorTestCase;
 
 /**
  * @group class-polyfill
  */
-class CollatorTest extends AbstractCollatorTest
+class CollatorTest extends AbstractCollatorTestCase
 {
     public function testConstructorWithUnsupportedLocale()
     {
diff --git a/tests/Intl/Icu/IcuTest.php b/tests/Intl/Icu/IcuTest.php
index f1b4521..6195553 100644
--- a/tests/Intl/Icu/IcuTest.php
+++ b/tests/Intl/Icu/IcuTest.php
@@ -12,8 +12,9 @@
 namespace Symfony\Polyfill\Tests\Intl\Icu;
 
 use Symfony\Polyfill\Intl\Icu\Icu;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractIcuTestCase;
 
-class IcuTest extends AbstractIcuTest
+class IcuTest extends AbstractIcuTestCase
 {
     protected function getIntlErrorName($errorCode)
     {
diff --git a/tests/Intl/Icu/IntlDateFormatterTest.php b/tests/Intl/Icu/IntlDateFormatterTest.php
index 6adc5e7..f99d7c6 100644
--- a/tests/Intl/Icu/IntlDateFormatterTest.php
+++ b/tests/Intl/Icu/IntlDateFormatterTest.php
@@ -17,12 +17,13 @@ use Symfony\Polyfill\Intl\Icu\Exception\MethodNotImplementedException;
 use Symfony\Polyfill\Intl\Icu\Exception\NotImplementedException;
 use Symfony\Polyfill\Intl\Icu\Icu;
 use Symfony\Polyfill\Intl\Icu\IntlDateFormatter;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractIntlDateFormatterTestCase;
 
 /**
  * @group class-polyfill
  * @group time-sensitive
  */
-class IntlDateFormatterTest extends AbstractIntlDateFormatterTest
+class IntlDateFormatterTest extends AbstractIntlDateFormatterTestCase
 {
     public function testConstructor()
     {
diff --git a/tests/Intl/Icu/LocaleTest.php b/tests/Intl/Icu/LocaleTest.php
index 85896db..edeac3a 100644
--- a/tests/Intl/Icu/LocaleTest.php
+++ b/tests/Intl/Icu/LocaleTest.php
@@ -17,7 +17,7 @@ use Symfony\Polyfill\Intl\Icu\Locale;
 /**
  * @group class-polyfill
  */
-class LocaleTest extends AbstractLocaleTest
+class LocaleTest extends AbstractLocaleTestCase
 {
     public function testAcceptFromHttp()
     {
diff --git a/tests/Intl/Icu/NumberFormatterTest.php b/tests/Intl/Icu/NumberFormatterTest.php
index 8b6dd92..0e2f458 100644
--- a/tests/Intl/Icu/NumberFormatterTest.php
+++ b/tests/Intl/Icu/NumberFormatterTest.php
@@ -24,7 +24,7 @@ use Symfony\Polyfill\Intl\Icu\NumberFormatter;
  *
  * @group class-polyfill
  */
-class NumberFormatterTest extends AbstractNumberFormatterTest
+class NumberFormatterTest extends AbstractNumberFormatterTestCase
 {
     public function testConstructorWithUnsupportedLocale()
     {
diff --git a/tests/Intl/Icu/Verification/CollatorTest.php b/tests/Intl/Icu/Verification/CollatorTest.php
index 834f133..7e38452 100644
--- a/tests/Intl/Icu/Verification/CollatorTest.php
+++ b/tests/Intl/Icu/Verification/CollatorTest.php
@@ -11,7 +11,7 @@
 
 namespace Symfony\Polyfill\Tests\Intl\Icu\Verification;
 
-use Symfony\Polyfill\Tests\Intl\Icu\AbstractCollatorTest;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractCollatorTestCase;
 
 /**
  * Verifies that {@link AbstractCollatorTest} matches the behavior of the
@@ -23,7 +23,7 @@ use Symfony\Polyfill\Tests\Intl\Icu\AbstractCollatorTest;
  *
  * @group class-polyfill
  */
-class CollatorTest extends AbstractCollatorTest
+class CollatorTest extends AbstractCollatorTestCase
 {
     protected function setUp(): void
     {
diff --git a/tests/Intl/Icu/Verification/IcuTest.php b/tests/Intl/Icu/Verification/IcuTest.php
index 5474adc..b48925a 100644
--- a/tests/Intl/Icu/Verification/IcuTest.php
+++ b/tests/Intl/Icu/Verification/IcuTest.php
@@ -11,7 +11,7 @@
 
 namespace Symfony\Polyfill\Tests\Intl\Icu\Verification;
 
-use Symfony\Polyfill\Tests\Intl\Icu\AbstractIcuTest;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractIcuTestCase;
 
 /**
  * Verifies that {@link AbstractIcuTest} matches the behavior of the
@@ -23,7 +23,7 @@ use Symfony\Polyfill\Tests\Intl\Icu\AbstractIcuTest;
  *
  * @group class-polyfill
  */
-class IcuTest extends AbstractIcuTest
+class IcuTest extends AbstractIcuTestCase
 {
     protected function setUp(): void
     {
diff --git a/tests/Intl/Icu/Verification/IntlDateFormatterTest.php b/tests/Intl/Icu/Verification/IntlDateFormatterTest.php
index da88e32..ff7cbc8 100644
--- a/tests/Intl/Icu/Verification/IntlDateFormatterTest.php
+++ b/tests/Intl/Icu/Verification/IntlDateFormatterTest.php
@@ -12,7 +12,7 @@
 namespace Symfony\Polyfill\Tests\Intl\Icu\Verification;
 
 use Symfony\Polyfill\Intl\Icu\IntlDateFormatter;
-use Symfony\Polyfill\Tests\Intl\Icu\AbstractIntlDateFormatterTest;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractIntlDateFormatterTestCase;
 
 /**
  * Verifies that {@link AbstractIntlDateFormatterTest} matches the behavior of
@@ -24,7 +24,7 @@ use Symfony\Polyfill\Tests\Intl\Icu\AbstractIntlDateFormatterTest;
  *
  * @group class-polyfill
  */
-class IntlDateFormatterTest extends AbstractIntlDateFormatterTest
+class IntlDateFormatterTest extends AbstractIntlDateFormatterTestCase
 {
     /**
      * @dataProvider formatProvider
diff --git a/tests/Intl/Icu/Verification/LocaleTest.php b/tests/Intl/Icu/Verification/LocaleTest.php
index 6d9c35e..41059a2 100644
--- a/tests/Intl/Icu/Verification/LocaleTest.php
+++ b/tests/Intl/Icu/Verification/LocaleTest.php
@@ -11,7 +11,7 @@
 
 namespace Symfony\Polyfill\Tests\Intl\Icu\Verification;
 
-use Symfony\Polyfill\Tests\Intl\Icu\AbstractLocaleTest;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractLocaleTestCase;
 
 /**
  * Verifies that {@link AbstractLocaleTest} matches the behavior of the
@@ -23,7 +23,7 @@ use Symfony\Polyfill\Tests\Intl\Icu\AbstractLocaleTest;
  *
  * @group class-polyfill
  */
-class LocaleTest extends AbstractLocaleTest
+class LocaleTest extends AbstractLocaleTestCase
 {
     protected function setUp(): void
     {
diff --git a/tests/Intl/Icu/Verification/NumberFormatterTest.php b/tests/Intl/Icu/Verification/NumberFormatterTest.php
index 38afae2..4d7e0d7 100644
--- a/tests/Intl/Icu/Verification/NumberFormatterTest.php
+++ b/tests/Intl/Icu/Verification/NumberFormatterTest.php
@@ -11,7 +11,7 @@
 
 namespace Symfony\Polyfill\Tests\Intl\Icu\Verification;
 
-use Symfony\Polyfill\Tests\Intl\Icu\AbstractNumberFormatterTest;
+use Symfony\Polyfill\Tests\Intl\Icu\AbstractNumberFormatterTestCase;
 
 /**
  * Note that there are some values written like -2147483647 - 1. This is the lower 32bit int max and is a known
@@ -21,7 +21,7 @@ use Symfony\Polyfill\Tests\Intl\Icu\AbstractNumberFormatterTest;
  *
  * @group class-polyfill
  */
-class NumberFormatterTest extends AbstractNumberFormatterTest
+class NumberFormatterTest extends AbstractNumberFormatterTestCase
 {
     protected function setUp(): void
     {