Completed
Push — master ( 11381c...fc67b6 )
by cam
01:49
created
ecrire/tests/Filtre/SinonTest.php 1 patch
Indentation   +817 added lines, -817 removed lines patch added patch discarded remove patch
@@ -13,823 +13,823 @@
 block discarded – undo
13 13
 
14 14
 class SinonTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresSinon')]
21
-	public function testFiltresSinon($expected, ...$args): void {
22
-		$actual = sinon(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresSinon')]
21
+    public function testFiltresSinon($expected, ...$args): void {
22
+        $actual = sinon(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresSinon(): array {
27
-		return [
28
-			0 => [
29
-				0 => '',
30
-				1 => '',
31
-				2 => '',
32
-			],
33
-			1 => [
34
-				0 => '0',
35
-				1 => '',
36
-				2 => '0',
37
-			],
38
-			2 => [
39
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
40
-				1 => '',
41
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
42
-			],
43
-			3 => [
44
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
45
-				1 => '',
46
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
47
-			],
48
-			4 => [
49
-				0 => 'Un texte sans entites &<>"\'',
50
-				1 => '',
51
-				2 => 'Un texte sans entites &<>"\'',
52
-			],
53
-			5 => [
54
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
55
-				1 => '',
56
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
57
-			],
58
-			6 => [
59
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
60
-				1 => '',
61
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
62
-			],
63
-			7 => [
64
-				0 => '0',
65
-				1 => '0',
66
-				2 => '',
67
-			],
68
-			8 => [
69
-				0 => '0',
70
-				1 => '0',
71
-				2 => '0',
72
-			],
73
-			9 => [
74
-				0 => '0',
75
-				1 => '0',
76
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
77
-			],
78
-			10 => [
79
-				0 => '0',
80
-				1 => '0',
81
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
82
-			],
83
-			11 => [
84
-				0 => '0',
85
-				1 => '0',
86
-				2 => 'Un texte sans entites &<>"\'',
87
-			],
88
-			12 => [
89
-				0 => '0',
90
-				1 => '0',
91
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
92
-			],
93
-			13 => [
94
-				0 => '0',
95
-				1 => '0',
96
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
97
-			],
98
-			14 => [
99
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
100
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
101
-				2 => '',
102
-			],
103
-			15 => [
104
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
105
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
106
-				2 => '0',
107
-			],
108
-			16 => [
109
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
110
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
111
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
112
-			],
113
-			17 => [
114
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
115
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
116
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
117
-			],
118
-			18 => [
119
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
120
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
121
-				2 => 'Un texte sans entites &<>"\'',
122
-			],
123
-			19 => [
124
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
125
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
126
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
127
-			],
128
-			20 => [
129
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
130
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
131
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
132
-			],
133
-			21 => [
134
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
135
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
136
-				2 => '',
137
-			],
138
-			22 => [
139
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
140
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
141
-				2 => '0',
142
-			],
143
-			23 => [
144
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
145
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
146
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
147
-			],
148
-			24 => [
149
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
150
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
151
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
152
-			],
153
-			25 => [
154
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
155
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
156
-				2 => 'Un texte sans entites &<>"\'',
157
-			],
158
-			26 => [
159
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
160
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
161
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
162
-			],
163
-			27 => [
164
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
165
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
166
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
167
-			],
168
-			28 => [
169
-				0 => 'Un texte sans entites &<>"\'',
170
-				1 => 'Un texte sans entites &<>"\'',
171
-				2 => '',
172
-			],
173
-			29 => [
174
-				0 => 'Un texte sans entites &<>"\'',
175
-				1 => 'Un texte sans entites &<>"\'',
176
-				2 => '0',
177
-			],
178
-			30 => [
179
-				0 => 'Un texte sans entites &<>"\'',
180
-				1 => 'Un texte sans entites &<>"\'',
181
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
182
-			],
183
-			31 => [
184
-				0 => 'Un texte sans entites &<>"\'',
185
-				1 => 'Un texte sans entites &<>"\'',
186
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
187
-			],
188
-			32 => [
189
-				0 => 'Un texte sans entites &<>"\'',
190
-				1 => 'Un texte sans entites &<>"\'',
191
-				2 => 'Un texte sans entites &<>"\'',
192
-			],
193
-			33 => [
194
-				0 => 'Un texte sans entites &<>"\'',
195
-				1 => 'Un texte sans entites &<>"\'',
196
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
197
-			],
198
-			34 => [
199
-				0 => 'Un texte sans entites &<>"\'',
200
-				1 => 'Un texte sans entites &<>"\'',
201
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
202
-			],
203
-			35 => [
204
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
205
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
206
-				2 => '',
207
-			],
208
-			36 => [
209
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
210
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
211
-				2 => '0',
212
-			],
213
-			37 => [
214
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
215
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
216
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
217
-			],
218
-			38 => [
219
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
220
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
221
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
222
-			],
223
-			39 => [
224
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
225
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
226
-				2 => 'Un texte sans entites &<>"\'',
227
-			],
228
-			40 => [
229
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
230
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
231
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
232
-			],
233
-			41 => [
234
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
235
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
236
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
237
-			],
238
-			42 => [
239
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
240
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
241
-				2 => '',
242
-			],
243
-			43 => [
244
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
245
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
246
-				2 => '0',
247
-			],
248
-			44 => [
249
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
250
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
251
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
252
-			],
253
-			45 => [
254
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
255
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
256
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
257
-			],
258
-			46 => [
259
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
260
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
261
-				2 => 'Un texte sans entites &<>"\'',
262
-			],
263
-			47 => [
264
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
265
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
266
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
267
-			],
268
-			48 => [
269
-				0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
270
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
271
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
272
-			],
273
-			49 => [
274
-				0 => 0,
275
-				1 => 0,
276
-				2 => '',
277
-			],
278
-			50 => [
279
-				0 => 0,
280
-				1 => 0,
281
-				2 => '0',
282
-			],
283
-			51 => [
284
-				0 => 0,
285
-				1 => 0,
286
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
287
-			],
288
-			52 => [
289
-				0 => 0,
290
-				1 => 0,
291
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
292
-			],
293
-			53 => [
294
-				0 => 0,
295
-				1 => 0,
296
-				2 => 'Un texte sans entites &<>"\'',
297
-			],
298
-			54 => [
299
-				0 => 0,
300
-				1 => 0,
301
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
302
-			],
303
-			55 => [
304
-				0 => 0,
305
-				1 => 0,
306
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
307
-			],
308
-			56 => [
309
-				0 => -1,
310
-				1 => -1,
311
-				2 => '',
312
-			],
313
-			57 => [
314
-				0 => -1,
315
-				1 => -1,
316
-				2 => '0',
317
-			],
318
-			58 => [
319
-				0 => -1,
320
-				1 => -1,
321
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
322
-			],
323
-			59 => [
324
-				0 => -1,
325
-				1 => -1,
326
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
327
-			],
328
-			60 => [
329
-				0 => -1,
330
-				1 => -1,
331
-				2 => 'Un texte sans entites &<>"\'',
332
-			],
333
-			61 => [
334
-				0 => -1,
335
-				1 => -1,
336
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
337
-			],
338
-			62 => [
339
-				0 => -1,
340
-				1 => -1,
341
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
342
-			],
343
-			63 => [
344
-				0 => 1,
345
-				1 => 1,
346
-				2 => '',
347
-			],
348
-			64 => [
349
-				0 => 1,
350
-				1 => 1,
351
-				2 => '0',
352
-			],
353
-			65 => [
354
-				0 => 1,
355
-				1 => 1,
356
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
357
-			],
358
-			66 => [
359
-				0 => 1,
360
-				1 => 1,
361
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
362
-			],
363
-			67 => [
364
-				0 => 1,
365
-				1 => 1,
366
-				2 => 'Un texte sans entites &<>"\'',
367
-			],
368
-			68 => [
369
-				0 => 1,
370
-				1 => 1,
371
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
372
-			],
373
-			69 => [
374
-				0 => 1,
375
-				1 => 1,
376
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
377
-			],
378
-			70 => [
379
-				0 => 2,
380
-				1 => 2,
381
-				2 => '',
382
-			],
383
-			71 => [
384
-				0 => 2,
385
-				1 => 2,
386
-				2 => '0',
387
-			],
388
-			72 => [
389
-				0 => 2,
390
-				1 => 2,
391
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
392
-			],
393
-			73 => [
394
-				0 => 2,
395
-				1 => 2,
396
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
397
-			],
398
-			74 => [
399
-				0 => 2,
400
-				1 => 2,
401
-				2 => 'Un texte sans entites &<>"\'',
402
-			],
403
-			75 => [
404
-				0 => 2,
405
-				1 => 2,
406
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
407
-			],
408
-			76 => [
409
-				0 => 2,
410
-				1 => 2,
411
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
412
-			],
413
-			77 => [
414
-				0 => 3,
415
-				1 => 3,
416
-				2 => '',
417
-			],
418
-			78 => [
419
-				0 => 3,
420
-				1 => 3,
421
-				2 => '0',
422
-			],
423
-			79 => [
424
-				0 => 3,
425
-				1 => 3,
426
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
427
-			],
428
-			80 => [
429
-				0 => 3,
430
-				1 => 3,
431
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
432
-			],
433
-			81 => [
434
-				0 => 3,
435
-				1 => 3,
436
-				2 => 'Un texte sans entites &<>"\'',
437
-			],
438
-			82 => [
439
-				0 => 3,
440
-				1 => 3,
441
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
442
-			],
443
-			83 => [
444
-				0 => 3,
445
-				1 => 3,
446
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
447
-			],
448
-			84 => [
449
-				0 => 4,
450
-				1 => 4,
451
-				2 => '',
452
-			],
453
-			85 => [
454
-				0 => 4,
455
-				1 => 4,
456
-				2 => '0',
457
-			],
458
-			86 => [
459
-				0 => 4,
460
-				1 => 4,
461
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
462
-			],
463
-			87 => [
464
-				0 => 4,
465
-				1 => 4,
466
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
467
-			],
468
-			88 => [
469
-				0 => 4,
470
-				1 => 4,
471
-				2 => 'Un texte sans entites &<>"\'',
472
-			],
473
-			89 => [
474
-				0 => 4,
475
-				1 => 4,
476
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
477
-			],
478
-			90 => [
479
-				0 => 4,
480
-				1 => 4,
481
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
482
-			],
483
-			91 => [
484
-				0 => 5,
485
-				1 => 5,
486
-				2 => '',
487
-			],
488
-			92 => [
489
-				0 => 5,
490
-				1 => 5,
491
-				2 => '0',
492
-			],
493
-			93 => [
494
-				0 => 5,
495
-				1 => 5,
496
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
497
-			],
498
-			94 => [
499
-				0 => 5,
500
-				1 => 5,
501
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
502
-			],
503
-			95 => [
504
-				0 => 5,
505
-				1 => 5,
506
-				2 => 'Un texte sans entites &<>"\'',
507
-			],
508
-			96 => [
509
-				0 => 5,
510
-				1 => 5,
511
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
512
-			],
513
-			97 => [
514
-				0 => 5,
515
-				1 => 5,
516
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
517
-			],
518
-			98 => [
519
-				0 => 6,
520
-				1 => 6,
521
-				2 => '',
522
-			],
523
-			99 => [
524
-				0 => 6,
525
-				1 => 6,
526
-				2 => '0',
527
-			],
528
-			100 => [
529
-				0 => 6,
530
-				1 => 6,
531
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
532
-			],
533
-			101 => [
534
-				0 => 6,
535
-				1 => 6,
536
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
537
-			],
538
-			102 => [
539
-				0 => 6,
540
-				1 => 6,
541
-				2 => 'Un texte sans entites &<>"\'',
542
-			],
543
-			103 => [
544
-				0 => 6,
545
-				1 => 6,
546
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
547
-			],
548
-			104 => [
549
-				0 => 6,
550
-				1 => 6,
551
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
552
-			],
553
-			105 => [
554
-				0 => 7,
555
-				1 => 7,
556
-				2 => '',
557
-			],
558
-			106 => [
559
-				0 => 7,
560
-				1 => 7,
561
-				2 => '0',
562
-			],
563
-			107 => [
564
-				0 => 7,
565
-				1 => 7,
566
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
567
-			],
568
-			108 => [
569
-				0 => 7,
570
-				1 => 7,
571
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
572
-			],
573
-			109 => [
574
-				0 => 7,
575
-				1 => 7,
576
-				2 => 'Un texte sans entites &<>"\'',
577
-			],
578
-			110 => [
579
-				0 => 7,
580
-				1 => 7,
581
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
582
-			],
583
-			111 => [
584
-				0 => 7,
585
-				1 => 7,
586
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
587
-			],
588
-			112 => [
589
-				0 => 10,
590
-				1 => 10,
591
-				2 => '',
592
-			],
593
-			113 => [
594
-				0 => 10,
595
-				1 => 10,
596
-				2 => '0',
597
-			],
598
-			114 => [
599
-				0 => 10,
600
-				1 => 10,
601
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
602
-			],
603
-			115 => [
604
-				0 => 10,
605
-				1 => 10,
606
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
607
-			],
608
-			116 => [
609
-				0 => 10,
610
-				1 => 10,
611
-				2 => 'Un texte sans entites &<>"\'',
612
-			],
613
-			117 => [
614
-				0 => 10,
615
-				1 => 10,
616
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
617
-			],
618
-			118 => [
619
-				0 => 10,
620
-				1 => 10,
621
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
622
-			],
623
-			119 => [
624
-				0 => 20,
625
-				1 => 20,
626
-				2 => '',
627
-			],
628
-			120 => [
629
-				0 => 20,
630
-				1 => 20,
631
-				2 => '0',
632
-			],
633
-			121 => [
634
-				0 => 20,
635
-				1 => 20,
636
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
637
-			],
638
-			122 => [
639
-				0 => 20,
640
-				1 => 20,
641
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
642
-			],
643
-			123 => [
644
-				0 => 20,
645
-				1 => 20,
646
-				2 => 'Un texte sans entites &<>"\'',
647
-			],
648
-			124 => [
649
-				0 => 20,
650
-				1 => 20,
651
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
652
-			],
653
-			125 => [
654
-				0 => 20,
655
-				1 => 20,
656
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
657
-			],
658
-			126 => [
659
-				0 => 30,
660
-				1 => 30,
661
-				2 => '',
662
-			],
663
-			127 => [
664
-				0 => 30,
665
-				1 => 30,
666
-				2 => '0',
667
-			],
668
-			128 => [
669
-				0 => 30,
670
-				1 => 30,
671
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
672
-			],
673
-			129 => [
674
-				0 => 30,
675
-				1 => 30,
676
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
677
-			],
678
-			130 => [
679
-				0 => 30,
680
-				1 => 30,
681
-				2 => 'Un texte sans entites &<>"\'',
682
-			],
683
-			131 => [
684
-				0 => 30,
685
-				1 => 30,
686
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
687
-			],
688
-			132 => [
689
-				0 => 30,
690
-				1 => 30,
691
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
692
-			],
693
-			133 => [
694
-				0 => 50,
695
-				1 => 50,
696
-				2 => '',
697
-			],
698
-			134 => [
699
-				0 => 50,
700
-				1 => 50,
701
-				2 => '0',
702
-			],
703
-			135 => [
704
-				0 => 50,
705
-				1 => 50,
706
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
707
-			],
708
-			136 => [
709
-				0 => 50,
710
-				1 => 50,
711
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
712
-			],
713
-			137 => [
714
-				0 => 50,
715
-				1 => 50,
716
-				2 => 'Un texte sans entites &<>"\'',
717
-			],
718
-			138 => [
719
-				0 => 50,
720
-				1 => 50,
721
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
722
-			],
723
-			139 => [
724
-				0 => 50,
725
-				1 => 50,
726
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
727
-			],
728
-			140 => [
729
-				0 => 100,
730
-				1 => 100,
731
-				2 => '',
732
-			],
733
-			141 => [
734
-				0 => 100,
735
-				1 => 100,
736
-				2 => '0',
737
-			],
738
-			142 => [
739
-				0 => 100,
740
-				1 => 100,
741
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
742
-			],
743
-			143 => [
744
-				0 => 100,
745
-				1 => 100,
746
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
747
-			],
748
-			144 => [
749
-				0 => 100,
750
-				1 => 100,
751
-				2 => 'Un texte sans entites &<>"\'',
752
-			],
753
-			145 => [
754
-				0 => 100,
755
-				1 => 100,
756
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
757
-			],
758
-			146 => [
759
-				0 => 100,
760
-				1 => 100,
761
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
762
-			],
763
-			147 => [
764
-				0 => 1000,
765
-				1 => 1000,
766
-				2 => '',
767
-			],
768
-			148 => [
769
-				0 => 1000,
770
-				1 => 1000,
771
-				2 => '0',
772
-			],
773
-			149 => [
774
-				0 => 1000,
775
-				1 => 1000,
776
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
777
-			],
778
-			150 => [
779
-				0 => 1000,
780
-				1 => 1000,
781
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
782
-			],
783
-			151 => [
784
-				0 => 1000,
785
-				1 => 1000,
786
-				2 => 'Un texte sans entites &<>"\'',
787
-			],
788
-			152 => [
789
-				0 => 1000,
790
-				1 => 1000,
791
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
792
-			],
793
-			153 => [
794
-				0 => 1000,
795
-				1 => 1000,
796
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
797
-			],
798
-			154 => [
799
-				0 => 10000,
800
-				1 => 10000,
801
-				2 => '',
802
-			],
803
-			155 => [
804
-				0 => 10000,
805
-				1 => 10000,
806
-				2 => '0',
807
-			],
808
-			156 => [
809
-				0 => 10000,
810
-				1 => 10000,
811
-				2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
812
-			],
813
-			157 => [
814
-				0 => 10000,
815
-				1 => 10000,
816
-				2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
817
-			],
818
-			158 => [
819
-				0 => 10000,
820
-				1 => 10000,
821
-				2 => 'Un texte sans entites &<>"\'',
822
-			],
823
-			159 => [
824
-				0 => 10000,
825
-				1 => 10000,
826
-				2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
827
-			],
828
-			160 => [
829
-				0 => 10000,
830
-				1 => 10000,
831
-				2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
832
-			],
833
-		];
834
-	}
26
+    public static function providerFiltresSinon(): array {
27
+        return [
28
+            0 => [
29
+                0 => '',
30
+                1 => '',
31
+                2 => '',
32
+            ],
33
+            1 => [
34
+                0 => '0',
35
+                1 => '',
36
+                2 => '0',
37
+            ],
38
+            2 => [
39
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
40
+                1 => '',
41
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
42
+            ],
43
+            3 => [
44
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
45
+                1 => '',
46
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
47
+            ],
48
+            4 => [
49
+                0 => 'Un texte sans entites &<>"\'',
50
+                1 => '',
51
+                2 => 'Un texte sans entites &<>"\'',
52
+            ],
53
+            5 => [
54
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
55
+                1 => '',
56
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
57
+            ],
58
+            6 => [
59
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
60
+                1 => '',
61
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
62
+            ],
63
+            7 => [
64
+                0 => '0',
65
+                1 => '0',
66
+                2 => '',
67
+            ],
68
+            8 => [
69
+                0 => '0',
70
+                1 => '0',
71
+                2 => '0',
72
+            ],
73
+            9 => [
74
+                0 => '0',
75
+                1 => '0',
76
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
77
+            ],
78
+            10 => [
79
+                0 => '0',
80
+                1 => '0',
81
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
82
+            ],
83
+            11 => [
84
+                0 => '0',
85
+                1 => '0',
86
+                2 => 'Un texte sans entites &<>"\'',
87
+            ],
88
+            12 => [
89
+                0 => '0',
90
+                1 => '0',
91
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
92
+            ],
93
+            13 => [
94
+                0 => '0',
95
+                1 => '0',
96
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
97
+            ],
98
+            14 => [
99
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
100
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
101
+                2 => '',
102
+            ],
103
+            15 => [
104
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
105
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
106
+                2 => '0',
107
+            ],
108
+            16 => [
109
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
110
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
111
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
112
+            ],
113
+            17 => [
114
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
115
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
116
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
117
+            ],
118
+            18 => [
119
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
120
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
121
+                2 => 'Un texte sans entites &<>"\'',
122
+            ],
123
+            19 => [
124
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
125
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
126
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
127
+            ],
128
+            20 => [
129
+                0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
130
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
131
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
132
+            ],
133
+            21 => [
134
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
135
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
136
+                2 => '',
137
+            ],
138
+            22 => [
139
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
140
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
141
+                2 => '0',
142
+            ],
143
+            23 => [
144
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
145
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
146
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
147
+            ],
148
+            24 => [
149
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
150
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
151
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
152
+            ],
153
+            25 => [
154
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
155
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
156
+                2 => 'Un texte sans entites &<>"\'',
157
+            ],
158
+            26 => [
159
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
160
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
161
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
162
+            ],
163
+            27 => [
164
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
165
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
166
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
167
+            ],
168
+            28 => [
169
+                0 => 'Un texte sans entites &<>"\'',
170
+                1 => 'Un texte sans entites &<>"\'',
171
+                2 => '',
172
+            ],
173
+            29 => [
174
+                0 => 'Un texte sans entites &<>"\'',
175
+                1 => 'Un texte sans entites &<>"\'',
176
+                2 => '0',
177
+            ],
178
+            30 => [
179
+                0 => 'Un texte sans entites &<>"\'',
180
+                1 => 'Un texte sans entites &<>"\'',
181
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
182
+            ],
183
+            31 => [
184
+                0 => 'Un texte sans entites &<>"\'',
185
+                1 => 'Un texte sans entites &<>"\'',
186
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
187
+            ],
188
+            32 => [
189
+                0 => 'Un texte sans entites &<>"\'',
190
+                1 => 'Un texte sans entites &<>"\'',
191
+                2 => 'Un texte sans entites &<>"\'',
192
+            ],
193
+            33 => [
194
+                0 => 'Un texte sans entites &<>"\'',
195
+                1 => 'Un texte sans entites &<>"\'',
196
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
197
+            ],
198
+            34 => [
199
+                0 => 'Un texte sans entites &<>"\'',
200
+                1 => 'Un texte sans entites &<>"\'',
201
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
202
+            ],
203
+            35 => [
204
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
205
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
206
+                2 => '',
207
+            ],
208
+            36 => [
209
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
210
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
211
+                2 => '0',
212
+            ],
213
+            37 => [
214
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
215
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
216
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
217
+            ],
218
+            38 => [
219
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
220
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
221
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
222
+            ],
223
+            39 => [
224
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
225
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
226
+                2 => 'Un texte sans entites &<>"\'',
227
+            ],
228
+            40 => [
229
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
230
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
231
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
232
+            ],
233
+            41 => [
234
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
235
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
236
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
237
+            ],
238
+            42 => [
239
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
240
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
241
+                2 => '',
242
+            ],
243
+            43 => [
244
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
245
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
246
+                2 => '0',
247
+            ],
248
+            44 => [
249
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
250
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
251
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
252
+            ],
253
+            45 => [
254
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
255
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
256
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
257
+            ],
258
+            46 => [
259
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
260
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
261
+                2 => 'Un texte sans entites &<>"\'',
262
+            ],
263
+            47 => [
264
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
265
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
266
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
267
+            ],
268
+            48 => [
269
+                0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
270
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
271
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
272
+            ],
273
+            49 => [
274
+                0 => 0,
275
+                1 => 0,
276
+                2 => '',
277
+            ],
278
+            50 => [
279
+                0 => 0,
280
+                1 => 0,
281
+                2 => '0',
282
+            ],
283
+            51 => [
284
+                0 => 0,
285
+                1 => 0,
286
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
287
+            ],
288
+            52 => [
289
+                0 => 0,
290
+                1 => 0,
291
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
292
+            ],
293
+            53 => [
294
+                0 => 0,
295
+                1 => 0,
296
+                2 => 'Un texte sans entites &<>"\'',
297
+            ],
298
+            54 => [
299
+                0 => 0,
300
+                1 => 0,
301
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
302
+            ],
303
+            55 => [
304
+                0 => 0,
305
+                1 => 0,
306
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
307
+            ],
308
+            56 => [
309
+                0 => -1,
310
+                1 => -1,
311
+                2 => '',
312
+            ],
313
+            57 => [
314
+                0 => -1,
315
+                1 => -1,
316
+                2 => '0',
317
+            ],
318
+            58 => [
319
+                0 => -1,
320
+                1 => -1,
321
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
322
+            ],
323
+            59 => [
324
+                0 => -1,
325
+                1 => -1,
326
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
327
+            ],
328
+            60 => [
329
+                0 => -1,
330
+                1 => -1,
331
+                2 => 'Un texte sans entites &<>"\'',
332
+            ],
333
+            61 => [
334
+                0 => -1,
335
+                1 => -1,
336
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
337
+            ],
338
+            62 => [
339
+                0 => -1,
340
+                1 => -1,
341
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
342
+            ],
343
+            63 => [
344
+                0 => 1,
345
+                1 => 1,
346
+                2 => '',
347
+            ],
348
+            64 => [
349
+                0 => 1,
350
+                1 => 1,
351
+                2 => '0',
352
+            ],
353
+            65 => [
354
+                0 => 1,
355
+                1 => 1,
356
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
357
+            ],
358
+            66 => [
359
+                0 => 1,
360
+                1 => 1,
361
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
362
+            ],
363
+            67 => [
364
+                0 => 1,
365
+                1 => 1,
366
+                2 => 'Un texte sans entites &<>"\'',
367
+            ],
368
+            68 => [
369
+                0 => 1,
370
+                1 => 1,
371
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
372
+            ],
373
+            69 => [
374
+                0 => 1,
375
+                1 => 1,
376
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
377
+            ],
378
+            70 => [
379
+                0 => 2,
380
+                1 => 2,
381
+                2 => '',
382
+            ],
383
+            71 => [
384
+                0 => 2,
385
+                1 => 2,
386
+                2 => '0',
387
+            ],
388
+            72 => [
389
+                0 => 2,
390
+                1 => 2,
391
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
392
+            ],
393
+            73 => [
394
+                0 => 2,
395
+                1 => 2,
396
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
397
+            ],
398
+            74 => [
399
+                0 => 2,
400
+                1 => 2,
401
+                2 => 'Un texte sans entites &<>"\'',
402
+            ],
403
+            75 => [
404
+                0 => 2,
405
+                1 => 2,
406
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
407
+            ],
408
+            76 => [
409
+                0 => 2,
410
+                1 => 2,
411
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
412
+            ],
413
+            77 => [
414
+                0 => 3,
415
+                1 => 3,
416
+                2 => '',
417
+            ],
418
+            78 => [
419
+                0 => 3,
420
+                1 => 3,
421
+                2 => '0',
422
+            ],
423
+            79 => [
424
+                0 => 3,
425
+                1 => 3,
426
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
427
+            ],
428
+            80 => [
429
+                0 => 3,
430
+                1 => 3,
431
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
432
+            ],
433
+            81 => [
434
+                0 => 3,
435
+                1 => 3,
436
+                2 => 'Un texte sans entites &<>"\'',
437
+            ],
438
+            82 => [
439
+                0 => 3,
440
+                1 => 3,
441
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
442
+            ],
443
+            83 => [
444
+                0 => 3,
445
+                1 => 3,
446
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
447
+            ],
448
+            84 => [
449
+                0 => 4,
450
+                1 => 4,
451
+                2 => '',
452
+            ],
453
+            85 => [
454
+                0 => 4,
455
+                1 => 4,
456
+                2 => '0',
457
+            ],
458
+            86 => [
459
+                0 => 4,
460
+                1 => 4,
461
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
462
+            ],
463
+            87 => [
464
+                0 => 4,
465
+                1 => 4,
466
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
467
+            ],
468
+            88 => [
469
+                0 => 4,
470
+                1 => 4,
471
+                2 => 'Un texte sans entites &<>"\'',
472
+            ],
473
+            89 => [
474
+                0 => 4,
475
+                1 => 4,
476
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
477
+            ],
478
+            90 => [
479
+                0 => 4,
480
+                1 => 4,
481
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
482
+            ],
483
+            91 => [
484
+                0 => 5,
485
+                1 => 5,
486
+                2 => '',
487
+            ],
488
+            92 => [
489
+                0 => 5,
490
+                1 => 5,
491
+                2 => '0',
492
+            ],
493
+            93 => [
494
+                0 => 5,
495
+                1 => 5,
496
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
497
+            ],
498
+            94 => [
499
+                0 => 5,
500
+                1 => 5,
501
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
502
+            ],
503
+            95 => [
504
+                0 => 5,
505
+                1 => 5,
506
+                2 => 'Un texte sans entites &<>"\'',
507
+            ],
508
+            96 => [
509
+                0 => 5,
510
+                1 => 5,
511
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
512
+            ],
513
+            97 => [
514
+                0 => 5,
515
+                1 => 5,
516
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
517
+            ],
518
+            98 => [
519
+                0 => 6,
520
+                1 => 6,
521
+                2 => '',
522
+            ],
523
+            99 => [
524
+                0 => 6,
525
+                1 => 6,
526
+                2 => '0',
527
+            ],
528
+            100 => [
529
+                0 => 6,
530
+                1 => 6,
531
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
532
+            ],
533
+            101 => [
534
+                0 => 6,
535
+                1 => 6,
536
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
537
+            ],
538
+            102 => [
539
+                0 => 6,
540
+                1 => 6,
541
+                2 => 'Un texte sans entites &<>"\'',
542
+            ],
543
+            103 => [
544
+                0 => 6,
545
+                1 => 6,
546
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
547
+            ],
548
+            104 => [
549
+                0 => 6,
550
+                1 => 6,
551
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
552
+            ],
553
+            105 => [
554
+                0 => 7,
555
+                1 => 7,
556
+                2 => '',
557
+            ],
558
+            106 => [
559
+                0 => 7,
560
+                1 => 7,
561
+                2 => '0',
562
+            ],
563
+            107 => [
564
+                0 => 7,
565
+                1 => 7,
566
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
567
+            ],
568
+            108 => [
569
+                0 => 7,
570
+                1 => 7,
571
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
572
+            ],
573
+            109 => [
574
+                0 => 7,
575
+                1 => 7,
576
+                2 => 'Un texte sans entites &<>"\'',
577
+            ],
578
+            110 => [
579
+                0 => 7,
580
+                1 => 7,
581
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
582
+            ],
583
+            111 => [
584
+                0 => 7,
585
+                1 => 7,
586
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
587
+            ],
588
+            112 => [
589
+                0 => 10,
590
+                1 => 10,
591
+                2 => '',
592
+            ],
593
+            113 => [
594
+                0 => 10,
595
+                1 => 10,
596
+                2 => '0',
597
+            ],
598
+            114 => [
599
+                0 => 10,
600
+                1 => 10,
601
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
602
+            ],
603
+            115 => [
604
+                0 => 10,
605
+                1 => 10,
606
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
607
+            ],
608
+            116 => [
609
+                0 => 10,
610
+                1 => 10,
611
+                2 => 'Un texte sans entites &<>"\'',
612
+            ],
613
+            117 => [
614
+                0 => 10,
615
+                1 => 10,
616
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
617
+            ],
618
+            118 => [
619
+                0 => 10,
620
+                1 => 10,
621
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
622
+            ],
623
+            119 => [
624
+                0 => 20,
625
+                1 => 20,
626
+                2 => '',
627
+            ],
628
+            120 => [
629
+                0 => 20,
630
+                1 => 20,
631
+                2 => '0',
632
+            ],
633
+            121 => [
634
+                0 => 20,
635
+                1 => 20,
636
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
637
+            ],
638
+            122 => [
639
+                0 => 20,
640
+                1 => 20,
641
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
642
+            ],
643
+            123 => [
644
+                0 => 20,
645
+                1 => 20,
646
+                2 => 'Un texte sans entites &<>"\'',
647
+            ],
648
+            124 => [
649
+                0 => 20,
650
+                1 => 20,
651
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
652
+            ],
653
+            125 => [
654
+                0 => 20,
655
+                1 => 20,
656
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
657
+            ],
658
+            126 => [
659
+                0 => 30,
660
+                1 => 30,
661
+                2 => '',
662
+            ],
663
+            127 => [
664
+                0 => 30,
665
+                1 => 30,
666
+                2 => '0',
667
+            ],
668
+            128 => [
669
+                0 => 30,
670
+                1 => 30,
671
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
672
+            ],
673
+            129 => [
674
+                0 => 30,
675
+                1 => 30,
676
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
677
+            ],
678
+            130 => [
679
+                0 => 30,
680
+                1 => 30,
681
+                2 => 'Un texte sans entites &<>"\'',
682
+            ],
683
+            131 => [
684
+                0 => 30,
685
+                1 => 30,
686
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
687
+            ],
688
+            132 => [
689
+                0 => 30,
690
+                1 => 30,
691
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
692
+            ],
693
+            133 => [
694
+                0 => 50,
695
+                1 => 50,
696
+                2 => '',
697
+            ],
698
+            134 => [
699
+                0 => 50,
700
+                1 => 50,
701
+                2 => '0',
702
+            ],
703
+            135 => [
704
+                0 => 50,
705
+                1 => 50,
706
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
707
+            ],
708
+            136 => [
709
+                0 => 50,
710
+                1 => 50,
711
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
712
+            ],
713
+            137 => [
714
+                0 => 50,
715
+                1 => 50,
716
+                2 => 'Un texte sans entites &<>"\'',
717
+            ],
718
+            138 => [
719
+                0 => 50,
720
+                1 => 50,
721
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
722
+            ],
723
+            139 => [
724
+                0 => 50,
725
+                1 => 50,
726
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
727
+            ],
728
+            140 => [
729
+                0 => 100,
730
+                1 => 100,
731
+                2 => '',
732
+            ],
733
+            141 => [
734
+                0 => 100,
735
+                1 => 100,
736
+                2 => '0',
737
+            ],
738
+            142 => [
739
+                0 => 100,
740
+                1 => 100,
741
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
742
+            ],
743
+            143 => [
744
+                0 => 100,
745
+                1 => 100,
746
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
747
+            ],
748
+            144 => [
749
+                0 => 100,
750
+                1 => 100,
751
+                2 => 'Un texte sans entites &<>"\'',
752
+            ],
753
+            145 => [
754
+                0 => 100,
755
+                1 => 100,
756
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
757
+            ],
758
+            146 => [
759
+                0 => 100,
760
+                1 => 100,
761
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
762
+            ],
763
+            147 => [
764
+                0 => 1000,
765
+                1 => 1000,
766
+                2 => '',
767
+            ],
768
+            148 => [
769
+                0 => 1000,
770
+                1 => 1000,
771
+                2 => '0',
772
+            ],
773
+            149 => [
774
+                0 => 1000,
775
+                1 => 1000,
776
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
777
+            ],
778
+            150 => [
779
+                0 => 1000,
780
+                1 => 1000,
781
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
782
+            ],
783
+            151 => [
784
+                0 => 1000,
785
+                1 => 1000,
786
+                2 => 'Un texte sans entites &<>"\'',
787
+            ],
788
+            152 => [
789
+                0 => 1000,
790
+                1 => 1000,
791
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
792
+            ],
793
+            153 => [
794
+                0 => 1000,
795
+                1 => 1000,
796
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
797
+            ],
798
+            154 => [
799
+                0 => 10000,
800
+                1 => 10000,
801
+                2 => '',
802
+            ],
803
+            155 => [
804
+                0 => 10000,
805
+                1 => 10000,
806
+                2 => '0',
807
+            ],
808
+            156 => [
809
+                0 => 10000,
810
+                1 => 10000,
811
+                2 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
812
+            ],
813
+            157 => [
814
+                0 => 10000,
815
+                1 => 10000,
816
+                2 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
817
+            ],
818
+            158 => [
819
+                0 => 10000,
820
+                1 => 10000,
821
+                2 => 'Un texte sans entites &<>"\'',
822
+            ],
823
+            159 => [
824
+                0 => 10000,
825
+                1 => 10000,
826
+                2 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
827
+            ],
828
+            160 => [
829
+                0 => 10000,
830
+                1 => 10000,
831
+                2 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
832
+            ],
833
+        ];
834
+    }
835 835
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/SupprimerNumeroTest.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -13,46 +13,46 @@
 block discarded – undo
13 13
 
14 14
 class SupprimerNumeroTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresSupprimerNumero')]
21
-	public function testFiltresSupprimerNumero($expected, ...$args): void {
22
-		$actual = supprimer_numero(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresSupprimerNumero')]
21
+    public function testFiltresSupprimerNumero($expected, ...$args): void {
22
+        $actual = supprimer_numero(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresSupprimerNumero(): array {
27
-		return [
28
-			0 => [
29
-				0 => '1.titre',
30
-				1 => '1.titre',
31
-			],
32
-			1 => [
33
-				0 => 'titre',
34
-				1 => '1. titre',
35
-			],
36
-			2 => [
37
-				0 => '1 .titre',
38
-				1 => '1 .titre',
39
-			],
40
-			3 => [
41
-				0 => '1 . titre',
42
-				1 => '1 . titre',
43
-			],
44
-			5 => [
45
-				0 => 'titre',
46
-				1 => '0. titre',
47
-			],
48
-			6 => [
49
-				0 => 'titre',
50
-				1 => ' 0. titre',
51
-			],
52
-			7 => [
53
-				0 => '-1. titre',
54
-				1 => '-1. titre',
55
-			],
56
-		];
57
-	}
26
+    public static function providerFiltresSupprimerNumero(): array {
27
+        return [
28
+            0 => [
29
+                0 => '1.titre',
30
+                1 => '1.titre',
31
+            ],
32
+            1 => [
33
+                0 => 'titre',
34
+                1 => '1. titre',
35
+            ],
36
+            2 => [
37
+                0 => '1 .titre',
38
+                1 => '1 .titre',
39
+            ],
40
+            3 => [
41
+                0 => '1 . titre',
42
+                1 => '1 . titre',
43
+            ],
44
+            5 => [
45
+                0 => 'titre',
46
+                1 => '0. titre',
47
+            ],
48
+            6 => [
49
+                0 => 'titre',
50
+                1 => ' 0. titre',
51
+            ],
52
+            7 => [
53
+                0 => '-1. titre',
54
+                1 => '-1. titre',
55
+            ],
56
+        ];
57
+    }
58 58
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenTest.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -12,36 +12,36 @@
 block discarded – undo
12 12
 
13 13
 class FormHiddenTest extends SquelettesTestCase
14 14
 {
15
-	public function testParametreUrl() {
16
-		$this->assertSame('x?y=1', parametre_url('x', 'y', '1'));
17
-		$this->assertSame('x?y=2', parametre_url(parametre_url('x', 'y', '1'), 'y', '2'));
18
-
19
-		$this->assertEqualsCode('x?y=1', '[(#VAL{x}|parametre_url{y,1})]');
20
-		$this->assertEqualsCode('x?y=2', '[(#VAL{x}|parametre_url{y,1}|parametre_url{y,2})]');
21
-	}
22
-
23
-	public function testParametreUrlArray() {
24
-		$this->assertSame('x?t[]=1&amp;t[]=2', parametre_url('x', 't[]', [1, 2]));
25
-
26
-		$this->assertEqualsCode('x?t[]=1&amp;t[]=2', '[(#VAL{x}|parametre_url{t\[\],#LISTE{1,2}})]');
27
-	}
28
-
29
-	public function testFormHiddenUnused() {
30
-		$url = parametre_url(parametre_url('x', 'toto', '1'), 'toto', '%!');
31
-		$url .= '&amp;toto=3=2';
32
-		$hiddens = form_hidden($url);
33
-		$this->assertCount(1, extraire_balises($hiddens, 'input'), 'bug compte d’input');
34
-
35
-		$url = parametre_url('x', 'toto', '3=2');
36
-		$url .= '&amp;toto=p';
37
-		$hiddens = form_hidden($url);
38
-		$this->assertSame('3=2', extraire_attribut(extraire_balise($hiddens, 'input'), 'value'), 'bug value input');
39
-	}
40
-
41
-	public function testFormHiddenArray() {
42
-		$url = parametre_url('x', 't[]', ['1', '%!']);
43
-		$url .= '&amp;t[]=3=2';
44
-		$hiddens = form_hidden($url);
45
-		$this->assertCount(3, extraire_balises($hiddens, 'input'), 'bug compte d’input');
46
-	}
15
+    public function testParametreUrl() {
16
+        $this->assertSame('x?y=1', parametre_url('x', 'y', '1'));
17
+        $this->assertSame('x?y=2', parametre_url(parametre_url('x', 'y', '1'), 'y', '2'));
18
+
19
+        $this->assertEqualsCode('x?y=1', '[(#VAL{x}|parametre_url{y,1})]');
20
+        $this->assertEqualsCode('x?y=2', '[(#VAL{x}|parametre_url{y,1}|parametre_url{y,2})]');
21
+    }
22
+
23
+    public function testParametreUrlArray() {
24
+        $this->assertSame('x?t[]=1&amp;t[]=2', parametre_url('x', 't[]', [1, 2]));
25
+
26
+        $this->assertEqualsCode('x?t[]=1&amp;t[]=2', '[(#VAL{x}|parametre_url{t\[\],#LISTE{1,2}})]');
27
+    }
28
+
29
+    public function testFormHiddenUnused() {
30
+        $url = parametre_url(parametre_url('x', 'toto', '1'), 'toto', '%!');
31
+        $url .= '&amp;toto=3=2';
32
+        $hiddens = form_hidden($url);
33
+        $this->assertCount(1, extraire_balises($hiddens, 'input'), 'bug compte d’input');
34
+
35
+        $url = parametre_url('x', 'toto', '3=2');
36
+        $url .= '&amp;toto=p';
37
+        $hiddens = form_hidden($url);
38
+        $this->assertSame('3=2', extraire_attribut(extraire_balise($hiddens, 'input'), 'value'), 'bug value input');
39
+    }
40
+
41
+    public function testFormHiddenArray() {
42
+        $url = parametre_url('x', 't[]', ['1', '%!']);
43
+        $url .= '&amp;t[]=3=2';
44
+        $hiddens = form_hidden($url);
45
+        $this->assertCount(3, extraire_balises($hiddens, 'input'), 'bug compte d’input');
46
+    }
47 47
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenStandardTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class FormHiddenStandardTest extends FormHiddenCase
8 8
 {
9
-	public const TYPE = 'standard';
9
+    public const TYPE = 'standard';
10 10
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenHtmlTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class FormHiddenHtmlTest extends FormHiddenCase
8 8
 {
9
-	public const TYPE = 'html';
9
+    public const TYPE = 'html';
10 10
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenArboTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class FormHiddenArboTest extends FormHiddenCase
8 8
 {
9
-	public const TYPE = 'arbo';
9
+    public const TYPE = 'arbo';
10 10
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenCase.php 2 patches
Indentation   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -11,116 +11,116 @@
 block discarded – undo
11 11
 
12 12
 class FormHiddenCase extends TestCase
13 13
 {
14
-	public const TYPE = '';
14
+    public const TYPE = '';
15 15
 
16
-	protected static ?int $id_rubrique;
16
+    protected static ?int $id_rubrique;
17 17
 
18
-	public static function setUpBeforeClass(): void {
19
-		find_in_path('inc/filtres.php', '', true);
20
-		self::backupUrls();
21
-		if (!static::TYPE) {
22
-			throw new RuntimeException('Subclass needs to define TYPE');
23
-		}
24
-		$GLOBALS['type_urls'] = static::TYPE;
25
-		$GLOBALS['profondeur_url'] = 0;
26
-		self::$id_rubrique = self::getIdRubrique();
27
-	}
18
+    public static function setUpBeforeClass(): void {
19
+        find_in_path('inc/filtres.php', '', true);
20
+        self::backupUrls();
21
+        if (!static::TYPE) {
22
+            throw new RuntimeException('Subclass needs to define TYPE');
23
+        }
24
+        $GLOBALS['type_urls'] = static::TYPE;
25
+        $GLOBALS['profondeur_url'] = 0;
26
+        self::$id_rubrique = self::getIdRubrique();
27
+    }
28 28
 
29
-	public static function setTearDownAfterClass(): void {
30
-		self::backupUrls(true);
31
-	}
29
+    public static function setTearDownAfterClass(): void {
30
+        self::backupUrls(true);
31
+    }
32 32
 
33
-	public static function backupUrls(bool $restore = false): void {
34
-		static $type = null;
35
-		static $profondeur_url = 0;
36
-		if ($restore) {
37
-			$GLOBALS['type_urls'] = $type;
38
-			$GLOBALS['profondeur_url'] = $profondeur_url;
39
-		} else {
40
-			$type = $GLOBALS['type_urls'] ?? null;
41
-			$profondeur_url = $GLOBALS['profondeur_url'] ?? 0;
42
-		}
43
-	}
33
+    public static function backupUrls(bool $restore = false): void {
34
+        static $type = null;
35
+        static $profondeur_url = 0;
36
+        if ($restore) {
37
+            $GLOBALS['type_urls'] = $type;
38
+            $GLOBALS['profondeur_url'] = $profondeur_url;
39
+        } else {
40
+            $type = $GLOBALS['type_urls'] ?? null;
41
+            $profondeur_url = $GLOBALS['profondeur_url'] ?? 0;
42
+        }
43
+    }
44 44
 
45
-	public function testHasRubrique(): void {
46
-		$id = self::$id_rubrique;
47
-		if (!$id) {
48
-			$this->markTestSkipped('Needs a published rubrique');
49
-		}
50
-		$this->assertNotNull($id);
51
-	}
45
+    public function testHasRubrique(): void {
46
+        $id = self::$id_rubrique;
47
+        if (!$id) {
48
+            $this->markTestSkipped('Needs a published rubrique');
49
+        }
50
+        $this->assertNotNull($id);
51
+    }
52 52
 
53
-	#[Depends('testHasRubrique')]
54
-	#[DataProvider('providerFormHiddenRubrique')]
55
-	public function testFormHiddenRubrique($expected, ...$args): void {
56
-		$id = self::$id_rubrique;
57
-		$expected = sprintf($expected, $id);
58
-		$args[0] = sprintf($args[0], $id);
59
-		$actual = form_hidden(...$args);
60
-		$this->assertSame($expected, $actual);
61
-	}
53
+    #[Depends('testHasRubrique')]
54
+    #[DataProvider('providerFormHiddenRubrique')]
55
+    public function testFormHiddenRubrique($expected, ...$args): void {
56
+        $id = self::$id_rubrique;
57
+        $expected = sprintf($expected, $id);
58
+        $args[0] = sprintf($args[0], $id);
59
+        $actual = form_hidden(...$args);
60
+        $this->assertSame($expected, $actual);
61
+    }
62 62
 
63
-	public static function providerFormHiddenRubrique(): array {
64
-		$id = '%s';
65
-		return [
66
-			0 =>
67
-			[
68
-				0 => '<input name="id_rubrique" value="' . $id . '" type="hidden"
63
+    public static function providerFormHiddenRubrique(): array {
64
+        $id = '%s';
65
+        return [
66
+            0 =>
67
+            [
68
+                0 => '<input name="id_rubrique" value="' . $id . '" type="hidden"
69 69
 /><input name="page" value="rubrique" type="hidden"
70 70
 />',
71
-				1 => './?rubrique' . $id,
72
-			],
73
-			1 =>
74
-			[
75
-				0 => '<input name="calendrier" value="1" type="hidden"
71
+                1 => './?rubrique' . $id,
72
+            ],
73
+            1 =>
74
+            [
75
+                0 => '<input name="calendrier" value="1" type="hidden"
76 76
 /><input name="id_rubrique" value="' . $id . '" type="hidden"
77 77
 /><input name="page" value="rubrique" type="hidden"
78 78
 />',
79
-				1 => './?rubrique' . $id . '&calendrier=1',
80
-			],
81
-			2 =>
82
-			[
83
-				0 => '<input name="id_rubrique" value="' . $id . '" type="hidden"
79
+                1 => './?rubrique' . $id . '&calendrier=1',
80
+            ],
81
+            2 =>
82
+            [
83
+                0 => '<input name="id_rubrique" value="' . $id . '" type="hidden"
84 84
 /><input name="page" value="rubrique" type="hidden"
85 85
 />',
86
-				1 => './rubrique' . $id . '.html',
87
-			],
88
-			3 =>
89
-			[
90
-				0 => '<input name="calendrier" value="1" type="hidden"
86
+                1 => './rubrique' . $id . '.html',
87
+            ],
88
+            3 =>
89
+            [
90
+                0 => '<input name="calendrier" value="1" type="hidden"
91 91
 /><input name="id_rubrique" value="' . $id . '" type="hidden"
92 92
 /><input name="page" value="rubrique" type="hidden"
93 93
 />',
94
-				1 => './rubrique' . $id . '.html?calendrier=1',
95
-			],
96
-			4 =>
97
-			[
98
-				0 => '<input name="calendrier" value="1" type="hidden"
94
+                1 => './rubrique' . $id . '.html?calendrier=1',
95
+            ],
96
+            4 =>
97
+            [
98
+                0 => '<input name="calendrier" value="1" type="hidden"
99 99
 /><input name="id_rubrique" value="' . $id . '" type="hidden"
100 100
 /><input name="page" value="rubrique" type="hidden"
101 101
 />',
102
-				1 => './?rubrique' . $id . '&amp;calendrier=1',
103
-			],
104
-			5 =>
105
-			[
106
-				0 => '<input name="calendrier" value="1" type="hidden"
102
+                1 => './?rubrique' . $id . '&amp;calendrier=1',
103
+            ],
104
+            5 =>
105
+            [
106
+                0 => '<input name="calendrier" value="1" type="hidden"
107 107
 /><input name="toto" value="2" type="hidden"
108 108
 /><input name="id_rubrique" value="' . $id . '" type="hidden"
109 109
 /><input name="page" value="rubrique" type="hidden"
110 110
 />',
111
-				1 => './rubrique' . $id . '.html?calendrier=1&amp;toto=2',
112
-			],
113
-		];
114
-	}
111
+                1 => './rubrique' . $id . '.html?calendrier=1&amp;toto=2',
112
+            ],
113
+        ];
114
+    }
115 115
 
116
-	protected static function getIdRubrique(): ?int {
117
-		include_spip('base/abstract_sql');
118
-		$id_rubrique = sql_getfetsel(
119
-			'id_rubrique',
120
-			'spip_rubriques',
121
-			['statut = ' . sql_quote('publie')],
122
-			limit: '0, 1',
123
-		);
124
-		return $id_rubrique ? (int) $id_rubrique : null;
125
-	}
116
+    protected static function getIdRubrique(): ?int {
117
+        include_spip('base/abstract_sql');
118
+        $id_rubrique = sql_getfetsel(
119
+            'id_rubrique',
120
+            'spip_rubriques',
121
+            ['statut = ' . sql_quote('publie')],
122
+            limit: '0, 1',
123
+        );
124
+        return $id_rubrique ? (int) $id_rubrique : null;
125
+    }
126 126
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,50 +65,50 @@  discard block
 block discarded – undo
65 65
 		return [
66 66
 			0 =>
67 67
 			[
68
-				0 => '<input name="id_rubrique" value="' . $id . '" type="hidden"
68
+				0 => '<input name="id_rubrique" value="'.$id.'" type="hidden"
69 69
 /><input name="page" value="rubrique" type="hidden"
70 70
 />',
71
-				1 => './?rubrique' . $id,
71
+				1 => './?rubrique'.$id,
72 72
 			],
73 73
 			1 =>
74 74
 			[
75 75
 				0 => '<input name="calendrier" value="1" type="hidden"
76
-/><input name="id_rubrique" value="' . $id . '" type="hidden"
76
+/><input name="id_rubrique" value="' . $id.'" type="hidden"
77 77
 /><input name="page" value="rubrique" type="hidden"
78 78
 />',
79
-				1 => './?rubrique' . $id . '&calendrier=1',
79
+				1 => './?rubrique'.$id.'&calendrier=1',
80 80
 			],
81 81
 			2 =>
82 82
 			[
83
-				0 => '<input name="id_rubrique" value="' . $id . '" type="hidden"
83
+				0 => '<input name="id_rubrique" value="'.$id.'" type="hidden"
84 84
 /><input name="page" value="rubrique" type="hidden"
85 85
 />',
86
-				1 => './rubrique' . $id . '.html',
86
+				1 => './rubrique'.$id.'.html',
87 87
 			],
88 88
 			3 =>
89 89
 			[
90 90
 				0 => '<input name="calendrier" value="1" type="hidden"
91
-/><input name="id_rubrique" value="' . $id . '" type="hidden"
91
+/><input name="id_rubrique" value="' . $id.'" type="hidden"
92 92
 /><input name="page" value="rubrique" type="hidden"
93 93
 />',
94
-				1 => './rubrique' . $id . '.html?calendrier=1',
94
+				1 => './rubrique'.$id.'.html?calendrier=1',
95 95
 			],
96 96
 			4 =>
97 97
 			[
98 98
 				0 => '<input name="calendrier" value="1" type="hidden"
99
-/><input name="id_rubrique" value="' . $id . '" type="hidden"
99
+/><input name="id_rubrique" value="' . $id.'" type="hidden"
100 100
 /><input name="page" value="rubrique" type="hidden"
101 101
 />',
102
-				1 => './?rubrique' . $id . '&amp;calendrier=1',
102
+				1 => './?rubrique'.$id.'&amp;calendrier=1',
103 103
 			],
104 104
 			5 =>
105 105
 			[
106 106
 				0 => '<input name="calendrier" value="1" type="hidden"
107 107
 /><input name="toto" value="2" type="hidden"
108
-/><input name="id_rubrique" value="' . $id . '" type="hidden"
108
+/><input name="id_rubrique" value="' . $id.'" type="hidden"
109 109
 /><input name="page" value="rubrique" type="hidden"
110 110
 />',
111
-				1 => './rubrique' . $id . '.html?calendrier=1&amp;toto=2',
111
+				1 => './rubrique'.$id.'.html?calendrier=1&amp;toto=2',
112 112
 			],
113 113
 		];
114 114
 	}
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 		$id_rubrique = sql_getfetsel(
119 119
 			'id_rubrique',
120 120
 			'spip_rubriques',
121
-			['statut = ' . sql_quote('publie')],
121
+			['statut = '.sql_quote('publie')],
122 122
 			limit: '0, 1',
123 123
 		);
124 124
 		return $id_rubrique ? (int) $id_rubrique : null;
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenPropresTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
 
11 11
 class FormHiddenPropresTest extends FormHiddenCase
12 12
 {
13
-	public const TYPE = 'propres';
13
+    public const TYPE = 'propres';
14 14
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Form/FormHiddenPageTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class FormHiddenPageTest extends FormHiddenCase
8 8
 {
9
-	public const TYPE = 'page';
9
+    public const TYPE = 'page';
10 10
 }
Please login to merge, or discard this patch.