Completed
Push — master ( f2008e...da65df )
by cam
02:08
created
ecrire/tests/Filtre/Date/AffdateCourtTest.php 1 patch
Indentation   +138 added lines, -138 removed lines patch added patch discarded remove patch
@@ -13,144 +13,144 @@
 block discarded – undo
13 13
 
14 14
 class AffdateCourtTest 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('providerFiltresAffdateCourt')]
21
-	public function testFiltresAffdateCourt($expected, ...$args): void {
22
-		changer_langue('fr');
23
-		$actual = affdate_court(...$args);
24
-		$this->assertSame($expected, $actual);
25
-	}
20
+    #[DataProvider('providerFiltresAffdateCourt')]
21
+    public function testFiltresAffdateCourt($expected, ...$args): void {
22
+        changer_langue('fr');
23
+        $actual = affdate_court(...$args);
24
+        $this->assertSame($expected, $actual);
25
+    }
26 26
 
27
-	public static function providerFiltresAffdateCourt(): array {
28
-		return [
29
-			0 => [
30
-				0 => ' 2001',
31
-				1 => '2001-00-00 12:33:44',
32
-				2 => '2011',
33
-			],
34
-			1 => [
35
-				0 => 'Mars 2001',
36
-				1 => '2001-03-00 09:12:57',
37
-				2 => '2011',
38
-			],
39
-			2 => [
40
-				0 => 'Février 2001',
41
-				1 => '2001-02-29 14:12:33',
42
-				2 => '2011',
43
-			],
44
-			3 => [
45
-				0 => '0000',
46
-				1 => '0000-00-00',
47
-				2 => '2011',
48
-			],
49
-			4 => [
50
-				0 => '0001',
51
-				1 => '0001-01-01',
52
-				2 => '2011',
53
-			],
54
-			5 => [
55
-				0 => 'Janvier 1970',
56
-				1 => '1970-01-01',
57
-				2 => '2011',
58
-			],
59
-			6 => [
60
-				0 => 'Juillet 2001',
61
-				1 => '2001-07-05 18:25:24',
62
-				2 => '2011',
63
-			],
64
-			7 => [
65
-				0 => 'Janvier 2001',
66
-				1 => '2001-01-01 00:00:00',
67
-				2 => '2011',
68
-			],
69
-			8 => [
70
-				0 => 'Décembre 2001',
71
-				1 => '2001-12-31 23:59:59',
72
-				2 => '2011',
73
-			],
74
-			9 => [
75
-				0 => 'Mars 2001',
76
-				1 => '2001-03-01 14:12:33',
77
-				2 => '2011',
78
-			],
79
-			10 => [
80
-				0 => 'Février 2004',
81
-				1 => '2004-02-29 14:12:33',
82
-				2 => '2011',
83
-			],
84
-			11 => [
85
-				0 => 'Mars 2012',
86
-				1 => '2012-03-20 12:00:00',
87
-				2 => '2011',
88
-			],
89
-			12 => [
90
-				0 => 'Juin 2012',
91
-				1 => '2012-06-22 12:00:00',
92
-				2 => '2011',
93
-			],
94
-			13 => [
95
-				0 => 'Septembre 2012',
96
-				1 => '2012-09-21 12:00:00',
97
-				2 => '2011',
98
-			],
99
-			14 => [
100
-				0 => 'Décembre 2012',
101
-				1 => '2012-12-22 12:00:00',
102
-				2 => '2011',
103
-			],
104
-			15 => [
105
-				0 => 'Juillet 2001',
106
-				1 => '2001-07-05',
107
-				2 => '2011',
108
-			],
109
-			16 => [
110
-				0 => 'Janvier 2001',
111
-				1 => '2001-01-01',
112
-				2 => '2011',
113
-			],
114
-			17 => [
115
-				0 => 'Décembre 2001',
116
-				1 => '2001-12-31',
117
-				2 => '2011',
118
-			],
119
-			18 => [
120
-				0 => 'Mars 2001',
121
-				1 => '2001-03-01',
122
-				2 => '2011',
123
-			],
124
-			19 => [
125
-				0 => 'Février 2004',
126
-				1 => '2004-02-29',
127
-				2 => '2011',
128
-			],
129
-			20 => [
130
-				0 => 'Juillet 2005',
131
-				1 => '2001/07/05',
132
-				2 => '2011',
133
-			],
134
-			21 => [
135
-				0 => 'Janvier 2001',
136
-				1 => '2001/01/01',
137
-				2 => '2011',
138
-			],
139
-			22 => [
140
-				0 => 'Décembre 2031',
141
-				1 => '2001/12/31',
142
-				2 => '2011',
143
-			],
144
-			23 => [
145
-				0 => 'Mars 2001',
146
-				1 => '2001/03/01',
147
-				2 => '2011',
148
-			],
149
-			24 => [
150
-				0 => 'Juin 2020',
151
-				1 => '2012/06/20',
152
-				2 => '2011',
153
-			],
154
-		];
155
-	}
27
+    public static function providerFiltresAffdateCourt(): array {
28
+        return [
29
+            0 => [
30
+                0 => ' 2001',
31
+                1 => '2001-00-00 12:33:44',
32
+                2 => '2011',
33
+            ],
34
+            1 => [
35
+                0 => 'Mars 2001',
36
+                1 => '2001-03-00 09:12:57',
37
+                2 => '2011',
38
+            ],
39
+            2 => [
40
+                0 => 'Février 2001',
41
+                1 => '2001-02-29 14:12:33',
42
+                2 => '2011',
43
+            ],
44
+            3 => [
45
+                0 => '0000',
46
+                1 => '0000-00-00',
47
+                2 => '2011',
48
+            ],
49
+            4 => [
50
+                0 => '0001',
51
+                1 => '0001-01-01',
52
+                2 => '2011',
53
+            ],
54
+            5 => [
55
+                0 => 'Janvier 1970',
56
+                1 => '1970-01-01',
57
+                2 => '2011',
58
+            ],
59
+            6 => [
60
+                0 => 'Juillet 2001',
61
+                1 => '2001-07-05 18:25:24',
62
+                2 => '2011',
63
+            ],
64
+            7 => [
65
+                0 => 'Janvier 2001',
66
+                1 => '2001-01-01 00:00:00',
67
+                2 => '2011',
68
+            ],
69
+            8 => [
70
+                0 => 'Décembre 2001',
71
+                1 => '2001-12-31 23:59:59',
72
+                2 => '2011',
73
+            ],
74
+            9 => [
75
+                0 => 'Mars 2001',
76
+                1 => '2001-03-01 14:12:33',
77
+                2 => '2011',
78
+            ],
79
+            10 => [
80
+                0 => 'Février 2004',
81
+                1 => '2004-02-29 14:12:33',
82
+                2 => '2011',
83
+            ],
84
+            11 => [
85
+                0 => 'Mars 2012',
86
+                1 => '2012-03-20 12:00:00',
87
+                2 => '2011',
88
+            ],
89
+            12 => [
90
+                0 => 'Juin 2012',
91
+                1 => '2012-06-22 12:00:00',
92
+                2 => '2011',
93
+            ],
94
+            13 => [
95
+                0 => 'Septembre 2012',
96
+                1 => '2012-09-21 12:00:00',
97
+                2 => '2011',
98
+            ],
99
+            14 => [
100
+                0 => 'Décembre 2012',
101
+                1 => '2012-12-22 12:00:00',
102
+                2 => '2011',
103
+            ],
104
+            15 => [
105
+                0 => 'Juillet 2001',
106
+                1 => '2001-07-05',
107
+                2 => '2011',
108
+            ],
109
+            16 => [
110
+                0 => 'Janvier 2001',
111
+                1 => '2001-01-01',
112
+                2 => '2011',
113
+            ],
114
+            17 => [
115
+                0 => 'Décembre 2001',
116
+                1 => '2001-12-31',
117
+                2 => '2011',
118
+            ],
119
+            18 => [
120
+                0 => 'Mars 2001',
121
+                1 => '2001-03-01',
122
+                2 => '2011',
123
+            ],
124
+            19 => [
125
+                0 => 'Février 2004',
126
+                1 => '2004-02-29',
127
+                2 => '2011',
128
+            ],
129
+            20 => [
130
+                0 => 'Juillet 2005',
131
+                1 => '2001/07/05',
132
+                2 => '2011',
133
+            ],
134
+            21 => [
135
+                0 => 'Janvier 2001',
136
+                1 => '2001/01/01',
137
+                2 => '2011',
138
+            ],
139
+            22 => [
140
+                0 => 'Décembre 2031',
141
+                1 => '2001/12/31',
142
+                2 => '2011',
143
+            ],
144
+            23 => [
145
+                0 => 'Mars 2001',
146
+                1 => '2001/03/01',
147
+                2 => '2011',
148
+            ],
149
+            24 => [
150
+                0 => 'Juin 2020',
151
+                1 => '2012/06/20',
152
+                2 => '2011',
153
+            ],
154
+        ];
155
+    }
156 156
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/ViderDateTest.php 1 patch
Indentation   +148 added lines, -148 removed lines patch added patch discarded remove patch
@@ -13,154 +13,154 @@
 block discarded – undo
13 13
 
14 14
 class ViderDateTest 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('providerFiltresViderDate')]
21
-	public function testFiltresViderDate($expected, ...$args): void {
22
-		$actual = vider_date(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresViderDate')]
21
+    public function testFiltresViderDate($expected, ...$args): void {
22
+        $actual = vider_date(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresViderDate(): array {
27
-		return [
28
-			0 => [
29
-				0 => '2001-00-00 12:33:44',
30
-				1 => '2001-00-00 12:33:44',
31
-			],
32
-			1 => [
33
-				0 => '2001-03-00 09:12:57',
34
-				1 => '2001-03-00 09:12:57',
35
-			],
36
-			2 => [
37
-				0 => '2001-02-29 14:12:33',
38
-				1 => '2001-02-29 14:12:33',
39
-			],
40
-			3 => [
41
-				0 => '',
42
-				1 => '0000-00-00',
43
-			],
44
-			4 => [
45
-				0 => '',
46
-				1 => '0001-01-01',
47
-			],
48
-			5 => [
49
-				0 => '',
50
-				1 => '1970-01-01',
51
-			],
52
-			6 => [
53
-				0 => '2001-07-05 18:25:24',
54
-				1 => '2001-07-05 18:25:24',
55
-			],
56
-			7 => [
57
-				0 => '2001-01-01 00:00:00',
58
-				1 => '2001-01-01 00:00:00',
59
-			],
60
-			8 => [
61
-				0 => '2001-12-31 23:59:59',
62
-				1 => '2001-12-31 23:59:59',
63
-			],
64
-			9 => [
65
-				0 => '2001-03-01 14:12:33',
66
-				1 => '2001-03-01 14:12:33',
67
-			],
68
-			10 => [
69
-				0 => '2004-02-29 14:12:33',
70
-				1 => '2004-02-29 14:12:33',
71
-			],
72
-			11 => [
73
-				0 => '2012-03-20 12:00:00',
74
-				1 => '2012-03-20 12:00:00',
75
-			],
76
-			12 => [
77
-				0 => '2012-12-22 12:00:00',
78
-				1 => '2012-12-22 12:00:00',
79
-			],
80
-			13 => [
81
-				0 => '2001-07-05',
82
-				1 => '2001-07-05',
83
-			],
84
-			14 => [
85
-				0 => '2001-01-01',
86
-				1 => '2001-01-01',
87
-			],
88
-			15 => [
89
-				0 => '2001-12-31',
90
-				1 => '2001-12-31',
91
-			],
92
-			16 => [
93
-				0 => '2001-03-01',
94
-				1 => '2001-03-01',
95
-			],
96
-			17 => [
97
-				0 => '2004-02-29',
98
-				1 => '2004-02-29',
99
-			],
100
-			18 => [
101
-				0 => '2012-03-20',
102
-				1 => '2012-03-20',
103
-			],
104
-			19 => [
105
-				0 => '2012-12-22',
106
-				1 => '2012-12-22',
107
-			],
108
-			20 => [
109
-				0 => '2001/07/05',
110
-				1 => '2001/07/05',
111
-			],
112
-			21 => [
113
-				0 => '2001/01/01',
114
-				1 => '2001/01/01',
115
-			],
116
-			22 => [
117
-				0 => '2001/12/31',
118
-				1 => '2001/12/31',
119
-			],
120
-			23 => [
121
-				0 => '2001/03/01',
122
-				1 => '2001/03/01',
123
-			],
124
-			24 => [
125
-				0 => '2004/02/29',
126
-				1 => '2004/02/29',
127
-			],
128
-			25 => [
129
-				0 => '2012/03/20',
130
-				1 => '2012/03/20',
131
-			],
132
-			26 => [
133
-				0 => '2012/12/22',
134
-				1 => '2012/12/22',
135
-			],
136
-			27 => [
137
-				0 => '05/07/2001',
138
-				1 => '05/07/2001',
139
-			],
140
-			28 => [
141
-				0 => '01/01/2001',
142
-				1 => '01/01/2001',
143
-			],
144
-			29 => [
145
-				0 => '31/12/2001',
146
-				1 => '31/12/2001',
147
-			],
148
-			30 => [
149
-				0 => '01/03/2001',
150
-				1 => '01/03/2001',
151
-			],
152
-			31 => [
153
-				0 => '29/02/2004',
154
-				1 => '29/02/2004',
155
-			],
156
-			32 => [
157
-				0 => '20/03/2012',
158
-				1 => '20/03/2012',
159
-			],
160
-			33 => [
161
-				0 => '22/12/2012',
162
-				1 => '22/12/2012',
163
-			],
164
-		];
165
-	}
26
+    public static function providerFiltresViderDate(): array {
27
+        return [
28
+            0 => [
29
+                0 => '2001-00-00 12:33:44',
30
+                1 => '2001-00-00 12:33:44',
31
+            ],
32
+            1 => [
33
+                0 => '2001-03-00 09:12:57',
34
+                1 => '2001-03-00 09:12:57',
35
+            ],
36
+            2 => [
37
+                0 => '2001-02-29 14:12:33',
38
+                1 => '2001-02-29 14:12:33',
39
+            ],
40
+            3 => [
41
+                0 => '',
42
+                1 => '0000-00-00',
43
+            ],
44
+            4 => [
45
+                0 => '',
46
+                1 => '0001-01-01',
47
+            ],
48
+            5 => [
49
+                0 => '',
50
+                1 => '1970-01-01',
51
+            ],
52
+            6 => [
53
+                0 => '2001-07-05 18:25:24',
54
+                1 => '2001-07-05 18:25:24',
55
+            ],
56
+            7 => [
57
+                0 => '2001-01-01 00:00:00',
58
+                1 => '2001-01-01 00:00:00',
59
+            ],
60
+            8 => [
61
+                0 => '2001-12-31 23:59:59',
62
+                1 => '2001-12-31 23:59:59',
63
+            ],
64
+            9 => [
65
+                0 => '2001-03-01 14:12:33',
66
+                1 => '2001-03-01 14:12:33',
67
+            ],
68
+            10 => [
69
+                0 => '2004-02-29 14:12:33',
70
+                1 => '2004-02-29 14:12:33',
71
+            ],
72
+            11 => [
73
+                0 => '2012-03-20 12:00:00',
74
+                1 => '2012-03-20 12:00:00',
75
+            ],
76
+            12 => [
77
+                0 => '2012-12-22 12:00:00',
78
+                1 => '2012-12-22 12:00:00',
79
+            ],
80
+            13 => [
81
+                0 => '2001-07-05',
82
+                1 => '2001-07-05',
83
+            ],
84
+            14 => [
85
+                0 => '2001-01-01',
86
+                1 => '2001-01-01',
87
+            ],
88
+            15 => [
89
+                0 => '2001-12-31',
90
+                1 => '2001-12-31',
91
+            ],
92
+            16 => [
93
+                0 => '2001-03-01',
94
+                1 => '2001-03-01',
95
+            ],
96
+            17 => [
97
+                0 => '2004-02-29',
98
+                1 => '2004-02-29',
99
+            ],
100
+            18 => [
101
+                0 => '2012-03-20',
102
+                1 => '2012-03-20',
103
+            ],
104
+            19 => [
105
+                0 => '2012-12-22',
106
+                1 => '2012-12-22',
107
+            ],
108
+            20 => [
109
+                0 => '2001/07/05',
110
+                1 => '2001/07/05',
111
+            ],
112
+            21 => [
113
+                0 => '2001/01/01',
114
+                1 => '2001/01/01',
115
+            ],
116
+            22 => [
117
+                0 => '2001/12/31',
118
+                1 => '2001/12/31',
119
+            ],
120
+            23 => [
121
+                0 => '2001/03/01',
122
+                1 => '2001/03/01',
123
+            ],
124
+            24 => [
125
+                0 => '2004/02/29',
126
+                1 => '2004/02/29',
127
+            ],
128
+            25 => [
129
+                0 => '2012/03/20',
130
+                1 => '2012/03/20',
131
+            ],
132
+            26 => [
133
+                0 => '2012/12/22',
134
+                1 => '2012/12/22',
135
+            ],
136
+            27 => [
137
+                0 => '05/07/2001',
138
+                1 => '05/07/2001',
139
+            ],
140
+            28 => [
141
+                0 => '01/01/2001',
142
+                1 => '01/01/2001',
143
+            ],
144
+            29 => [
145
+                0 => '31/12/2001',
146
+                1 => '31/12/2001',
147
+            ],
148
+            30 => [
149
+                0 => '01/03/2001',
150
+                1 => '01/03/2001',
151
+            ],
152
+            31 => [
153
+                0 => '29/02/2004',
154
+                1 => '29/02/2004',
155
+            ],
156
+            32 => [
157
+                0 => '20/03/2012',
158
+                1 => '20/03/2012',
159
+            ],
160
+            33 => [
161
+                0 => '22/12/2012',
162
+                1 => '22/12/2012',
163
+            ],
164
+        ];
165
+    }
166 166
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/MinutesTest.php 1 patch
Indentation   +164 added lines, -164 removed lines patch added patch discarded remove patch
@@ -13,170 +13,170 @@
 block discarded – undo
13 13
 
14 14
 class MinutesTest 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('providerFiltresMinutes')]
21
-	public function testFiltresMinutes($expected, ...$args): void {
22
-		$actual = minutes(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresMinutes')]
21
+    public function testFiltresMinutes($expected, ...$args): void {
22
+        $actual = minutes(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresMinutes(): array {
27
-		return [
28
-			0 => [
29
-				0 => '33',
30
-				1 => '2001-00-00 12:33:44',
31
-			],
32
-			1 => [
33
-				0 => '12',
34
-				1 => '2001-03-00 09:12:57',
35
-			],
36
-			2 => [
37
-				0 => '12',
38
-				1 => '2001-02-29 14:12:33',
39
-			],
40
-			3 => [
41
-				0 => '0',
42
-				1 => '0000-00-00',
43
-			],
44
-			4 => [
45
-				0 => '0',
46
-				1 => '0001-01-01',
47
-			],
48
-			5 => [
49
-				0 => '0',
50
-				1 => '1970-01-01',
51
-			],
52
-			6 => [
53
-				0 => '25',
54
-				1 => '2001-07-05 18:25:24',
55
-			],
56
-			7 => [
57
-				0 => '00',
58
-				1 => '2001-01-01 00:00:00',
59
-			],
60
-			8 => [
61
-				0 => '59',
62
-				1 => '2001-12-31 23:59:59',
63
-			],
64
-			9 => [
65
-				0 => '12',
66
-				1 => '2001-03-01 14:12:33',
67
-			],
68
-			10 => [
69
-				0 => '12',
70
-				1 => '2004-02-29 14:12:33',
71
-			],
72
-			11 => [
73
-				0 => '00',
74
-				1 => '2012-03-20 12:00:00',
75
-			],
76
-			12 => [
77
-				0 => '00',
78
-				1 => '2012-06-22 12:00:00',
79
-			],
80
-			13 => [
81
-				0 => '00',
82
-				1 => '2012-12-22 12:00:00',
83
-			],
84
-			14 => [
85
-				0 => '0',
86
-				1 => '2001-07-05',
87
-			],
88
-			15 => [
89
-				0 => '0',
90
-				1 => '2001-01-01',
91
-			],
92
-			16 => [
93
-				0 => '0',
94
-				1 => '2001-12-31',
95
-			],
96
-			17 => [
97
-				0 => '0',
98
-				1 => '2001-03-01',
99
-			],
100
-			18 => [
101
-				0 => '0',
102
-				1 => '2004-02-29',
103
-			],
104
-			19 => [
105
-				0 => '0',
106
-				1 => '2012-03-20',
107
-			],
108
-			20 => [
109
-				0 => '0',
110
-				1 => '2012-06-22',
111
-			],
112
-			21 => [
113
-				0 => '0',
114
-				1 => '2012-12-22',
115
-			],
116
-			22 => [
117
-				0 => '0',
118
-				1 => '2001/07/05',
119
-			],
120
-			23 => [
121
-				0 => '0',
122
-				1 => '2001/01/01',
123
-			],
124
-			24 => [
125
-				0 => '0',
126
-				1 => '2001/12/31',
127
-			],
128
-			25 => [
129
-				0 => '0',
130
-				1 => '2001/03/01',
131
-			],
132
-			26 => [
133
-				0 => '0',
134
-				1 => '2004/02/29',
135
-			],
136
-			27 => [
137
-				0 => '0',
138
-				1 => '2012/03/20',
139
-			],
140
-			28 => [
141
-				0 => '0',
142
-				1 => '2012/09/22',
143
-			],
144
-			29 => [
145
-				0 => '0',
146
-				1 => '2012/12/22',
147
-			],
148
-			30 => [
149
-				0 => '0',
150
-				1 => '05/07/2001',
151
-			],
152
-			31 => [
153
-				0 => '0',
154
-				1 => '01/01/2001',
155
-			],
156
-			32 => [
157
-				0 => '0',
158
-				1 => '31/12/2001',
159
-			],
160
-			33 => [
161
-				0 => '0',
162
-				1 => '01/03/2001',
163
-			],
164
-			34 => [
165
-				0 => '0',
166
-				1 => '29/02/2004',
167
-			],
168
-			35 => [
169
-				0 => '0',
170
-				1 => '20/03/2012',
171
-			],
172
-			36 => [
173
-				0 => '0',
174
-				1 => '21/09/2012',
175
-			],
176
-			37 => [
177
-				0 => '0',
178
-				1 => '22/12/2012',
179
-			],
180
-		];
181
-	}
26
+    public static function providerFiltresMinutes(): array {
27
+        return [
28
+            0 => [
29
+                0 => '33',
30
+                1 => '2001-00-00 12:33:44',
31
+            ],
32
+            1 => [
33
+                0 => '12',
34
+                1 => '2001-03-00 09:12:57',
35
+            ],
36
+            2 => [
37
+                0 => '12',
38
+                1 => '2001-02-29 14:12:33',
39
+            ],
40
+            3 => [
41
+                0 => '0',
42
+                1 => '0000-00-00',
43
+            ],
44
+            4 => [
45
+                0 => '0',
46
+                1 => '0001-01-01',
47
+            ],
48
+            5 => [
49
+                0 => '0',
50
+                1 => '1970-01-01',
51
+            ],
52
+            6 => [
53
+                0 => '25',
54
+                1 => '2001-07-05 18:25:24',
55
+            ],
56
+            7 => [
57
+                0 => '00',
58
+                1 => '2001-01-01 00:00:00',
59
+            ],
60
+            8 => [
61
+                0 => '59',
62
+                1 => '2001-12-31 23:59:59',
63
+            ],
64
+            9 => [
65
+                0 => '12',
66
+                1 => '2001-03-01 14:12:33',
67
+            ],
68
+            10 => [
69
+                0 => '12',
70
+                1 => '2004-02-29 14:12:33',
71
+            ],
72
+            11 => [
73
+                0 => '00',
74
+                1 => '2012-03-20 12:00:00',
75
+            ],
76
+            12 => [
77
+                0 => '00',
78
+                1 => '2012-06-22 12:00:00',
79
+            ],
80
+            13 => [
81
+                0 => '00',
82
+                1 => '2012-12-22 12:00:00',
83
+            ],
84
+            14 => [
85
+                0 => '0',
86
+                1 => '2001-07-05',
87
+            ],
88
+            15 => [
89
+                0 => '0',
90
+                1 => '2001-01-01',
91
+            ],
92
+            16 => [
93
+                0 => '0',
94
+                1 => '2001-12-31',
95
+            ],
96
+            17 => [
97
+                0 => '0',
98
+                1 => '2001-03-01',
99
+            ],
100
+            18 => [
101
+                0 => '0',
102
+                1 => '2004-02-29',
103
+            ],
104
+            19 => [
105
+                0 => '0',
106
+                1 => '2012-03-20',
107
+            ],
108
+            20 => [
109
+                0 => '0',
110
+                1 => '2012-06-22',
111
+            ],
112
+            21 => [
113
+                0 => '0',
114
+                1 => '2012-12-22',
115
+            ],
116
+            22 => [
117
+                0 => '0',
118
+                1 => '2001/07/05',
119
+            ],
120
+            23 => [
121
+                0 => '0',
122
+                1 => '2001/01/01',
123
+            ],
124
+            24 => [
125
+                0 => '0',
126
+                1 => '2001/12/31',
127
+            ],
128
+            25 => [
129
+                0 => '0',
130
+                1 => '2001/03/01',
131
+            ],
132
+            26 => [
133
+                0 => '0',
134
+                1 => '2004/02/29',
135
+            ],
136
+            27 => [
137
+                0 => '0',
138
+                1 => '2012/03/20',
139
+            ],
140
+            28 => [
141
+                0 => '0',
142
+                1 => '2012/09/22',
143
+            ],
144
+            29 => [
145
+                0 => '0',
146
+                1 => '2012/12/22',
147
+            ],
148
+            30 => [
149
+                0 => '0',
150
+                1 => '05/07/2001',
151
+            ],
152
+            31 => [
153
+                0 => '0',
154
+                1 => '01/01/2001',
155
+            ],
156
+            32 => [
157
+                0 => '0',
158
+                1 => '31/12/2001',
159
+            ],
160
+            33 => [
161
+                0 => '0',
162
+                1 => '01/03/2001',
163
+            ],
164
+            34 => [
165
+                0 => '0',
166
+                1 => '29/02/2004',
167
+            ],
168
+            35 => [
169
+                0 => '0',
170
+                1 => '20/03/2012',
171
+            ],
172
+            36 => [
173
+                0 => '0',
174
+                1 => '21/09/2012',
175
+            ],
176
+            37 => [
177
+                0 => '0',
178
+                1 => '22/12/2012',
179
+            ],
180
+        ];
181
+    }
182 182
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/NomJourTest.php 1 patch
Indentation   +184 added lines, -184 removed lines patch added patch discarded remove patch
@@ -13,191 +13,191 @@
 block discarded – undo
13 13
 
14 14
 class NomJourTest 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
-	protected function setUp(): void {
21
-		changer_langue('fr');
22
-		// ce test est en fr
23
-	}
20
+    protected function setUp(): void {
21
+        changer_langue('fr');
22
+        // ce test est en fr
23
+    }
24 24
 
25
-	#[DataProvider('providerFiltresNomJour')]
26
-	public function testFiltresNomJour($expected, ...$args): void {
27
-		$actual = nom_jour(...$args);
28
-		$this->assertSame($expected, $actual);
29
-	}
25
+    #[DataProvider('providerFiltresNomJour')]
26
+    public function testFiltresNomJour($expected, ...$args): void {
27
+        $actual = nom_jour(...$args);
28
+        $this->assertSame($expected, $actual);
29
+    }
30 30
 
31
-	public static function providerFiltresNomJour(): array {
32
-		return [
33
-			0 => [
34
-				0 => '',
35
-				1 => '2001-00-00 12:33:44',
36
-			],
37
-			1 => [
38
-				0 => '',
39
-				1 => '2001-03-00 09:12:57',
40
-			],
41
-			2 => [
42
-				0 => 'jeudi',
43
-				1 => '2001-02-29 14:12:33',
44
-			],
45
-			3 => [
46
-				0 => '',
47
-				1 => '0000-00-00',
48
-			],
49
-			4 => [
50
-				0 => 'lundi',
51
-				1 => '0001-01-01',
52
-			],
53
-			5 => [
54
-				0 => 'jeudi',
55
-				1 => '1970-01-01',
56
-			],
57
-			6 => [
58
-				0 => 'jeudi',
59
-				1 => '2001-07-05 18:25:24',
60
-			],
61
-			7 => [
62
-				0 => 'lundi',
63
-				1 => '2001-01-01 00:00:00',
64
-			],
65
-			8 => [
66
-				0 => 'lundi',
67
-				1 => '2001-12-31 23:59:59',
68
-			],
69
-			9 => [
70
-				0 => 'jeudi',
71
-				1 => '2001-03-01 14:12:33',
72
-			],
73
-			10 => [
74
-				0 => 'dimanche',
75
-				1 => '2004-02-29 14:12:33',
76
-			],
77
-			11 => [
78
-				0 => 'mardi',
79
-				1 => '2012-03-20 12:00:00',
80
-			],
81
-			12 => [
82
-				0 => 'mercredi',
83
-				1 => '2012-06-20 12:00:00',
84
-			],
85
-			13 => [
86
-				0 => 'jeudi',
87
-				1 => '2012-09-20 12:00:00',
88
-			],
89
-			14 => [
90
-				0 => 'samedi',
91
-				1 => '2012-09-22 12:00:00',
92
-			],
93
-			15 => [
94
-				0 => 'samedi',
95
-				1 => '2012-12-22 12:00:00',
96
-			],
97
-			16 => [
98
-				0 => 'jeudi',
99
-				1 => '2001-07-05',
100
-			],
101
-			17 => [
102
-				0 => 'lundi',
103
-				1 => '2001-01-01',
104
-			],
105
-			18 => [
106
-				0 => 'lundi',
107
-				1 => '2001-12-31',
108
-			],
109
-			19 => [
110
-				0 => 'jeudi',
111
-				1 => '2001-03-01',
112
-			],
113
-			20 => [
114
-				0 => 'dimanche',
115
-				1 => '2004-02-29',
116
-			],
117
-			21 => [
118
-				0 => 'mardi',
119
-				1 => '2012-03-20',
120
-			],
121
-			22 => [
122
-				0 => 'jeudi',
123
-				1 => '2012-06-21',
124
-			],
125
-			23 => [
126
-				0 => 'samedi',
127
-				1 => '2012-12-22',
128
-			],
129
-			24 => [
130
-				0 => 'vendredi',
131
-				1 => '2001/07/05',
132
-			],
133
-			25 => [
134
-				0 => 'lundi',
135
-				1 => '2001/01/01',
136
-			],
137
-			26 => [
138
-				0 => 'lundi',
139
-				1 => '2001/12/31',
140
-			],
141
-			27 => [
142
-				0 => 'jeudi',
143
-				1 => '2001/03/01',
144
-			],
145
-			28 => [
146
-				0 => 'dimanche',
147
-				1 => '2004/02/29',
148
-			],
149
-			29 => [
150
-				0 => 'jeudi',
151
-				1 => '2012/03/20',
152
-			],
153
-			30 => [
154
-				0 => 'vendredi',
155
-				1 => '2012/06/20',
156
-			],
157
-			31 => [
158
-				0 => 'dimanche',
159
-				1 => '2012/09/21',
160
-			],
161
-			32 => [
162
-				0 => 'lundi',
163
-				1 => '2012/12/22',
164
-			],
165
-			33 => [
166
-				0 => 'jeudi',
167
-				1 => '05/07/2001',
168
-			],
169
-			34 => [
170
-				0 => 'lundi',
171
-				1 => '01/01/2001',
172
-			],
173
-			35 => [
174
-				0 => 'lundi',
175
-				1 => '31/12/2001',
176
-			],
177
-			36 => [
178
-				0 => 'jeudi',
179
-				1 => '01/03/2001',
180
-			],
181
-			37 => [
182
-				0 => 'dimanche',
183
-				1 => '29/02/2004',
184
-			],
185
-			38 => [
186
-				0 => 'mardi',
187
-				1 => '20/03/2012',
188
-			],
189
-			39 => [
190
-				0 => 'mercredi',
191
-				1 => '20/06/2012',
192
-			],
193
-			40 => [
194
-				0 => 'vendredi',
195
-				1 => '21/09/2012',
196
-			],
197
-			41 => [
198
-				0 => 'samedi',
199
-				1 => '22/12/2012',
200
-			],
201
-		];
202
-	}
31
+    public static function providerFiltresNomJour(): array {
32
+        return [
33
+            0 => [
34
+                0 => '',
35
+                1 => '2001-00-00 12:33:44',
36
+            ],
37
+            1 => [
38
+                0 => '',
39
+                1 => '2001-03-00 09:12:57',
40
+            ],
41
+            2 => [
42
+                0 => 'jeudi',
43
+                1 => '2001-02-29 14:12:33',
44
+            ],
45
+            3 => [
46
+                0 => '',
47
+                1 => '0000-00-00',
48
+            ],
49
+            4 => [
50
+                0 => 'lundi',
51
+                1 => '0001-01-01',
52
+            ],
53
+            5 => [
54
+                0 => 'jeudi',
55
+                1 => '1970-01-01',
56
+            ],
57
+            6 => [
58
+                0 => 'jeudi',
59
+                1 => '2001-07-05 18:25:24',
60
+            ],
61
+            7 => [
62
+                0 => 'lundi',
63
+                1 => '2001-01-01 00:00:00',
64
+            ],
65
+            8 => [
66
+                0 => 'lundi',
67
+                1 => '2001-12-31 23:59:59',
68
+            ],
69
+            9 => [
70
+                0 => 'jeudi',
71
+                1 => '2001-03-01 14:12:33',
72
+            ],
73
+            10 => [
74
+                0 => 'dimanche',
75
+                1 => '2004-02-29 14:12:33',
76
+            ],
77
+            11 => [
78
+                0 => 'mardi',
79
+                1 => '2012-03-20 12:00:00',
80
+            ],
81
+            12 => [
82
+                0 => 'mercredi',
83
+                1 => '2012-06-20 12:00:00',
84
+            ],
85
+            13 => [
86
+                0 => 'jeudi',
87
+                1 => '2012-09-20 12:00:00',
88
+            ],
89
+            14 => [
90
+                0 => 'samedi',
91
+                1 => '2012-09-22 12:00:00',
92
+            ],
93
+            15 => [
94
+                0 => 'samedi',
95
+                1 => '2012-12-22 12:00:00',
96
+            ],
97
+            16 => [
98
+                0 => 'jeudi',
99
+                1 => '2001-07-05',
100
+            ],
101
+            17 => [
102
+                0 => 'lundi',
103
+                1 => '2001-01-01',
104
+            ],
105
+            18 => [
106
+                0 => 'lundi',
107
+                1 => '2001-12-31',
108
+            ],
109
+            19 => [
110
+                0 => 'jeudi',
111
+                1 => '2001-03-01',
112
+            ],
113
+            20 => [
114
+                0 => 'dimanche',
115
+                1 => '2004-02-29',
116
+            ],
117
+            21 => [
118
+                0 => 'mardi',
119
+                1 => '2012-03-20',
120
+            ],
121
+            22 => [
122
+                0 => 'jeudi',
123
+                1 => '2012-06-21',
124
+            ],
125
+            23 => [
126
+                0 => 'samedi',
127
+                1 => '2012-12-22',
128
+            ],
129
+            24 => [
130
+                0 => 'vendredi',
131
+                1 => '2001/07/05',
132
+            ],
133
+            25 => [
134
+                0 => 'lundi',
135
+                1 => '2001/01/01',
136
+            ],
137
+            26 => [
138
+                0 => 'lundi',
139
+                1 => '2001/12/31',
140
+            ],
141
+            27 => [
142
+                0 => 'jeudi',
143
+                1 => '2001/03/01',
144
+            ],
145
+            28 => [
146
+                0 => 'dimanche',
147
+                1 => '2004/02/29',
148
+            ],
149
+            29 => [
150
+                0 => 'jeudi',
151
+                1 => '2012/03/20',
152
+            ],
153
+            30 => [
154
+                0 => 'vendredi',
155
+                1 => '2012/06/20',
156
+            ],
157
+            31 => [
158
+                0 => 'dimanche',
159
+                1 => '2012/09/21',
160
+            ],
161
+            32 => [
162
+                0 => 'lundi',
163
+                1 => '2012/12/22',
164
+            ],
165
+            33 => [
166
+                0 => 'jeudi',
167
+                1 => '05/07/2001',
168
+            ],
169
+            34 => [
170
+                0 => 'lundi',
171
+                1 => '01/01/2001',
172
+            ],
173
+            35 => [
174
+                0 => 'lundi',
175
+                1 => '31/12/2001',
176
+            ],
177
+            36 => [
178
+                0 => 'jeudi',
179
+                1 => '01/03/2001',
180
+            ],
181
+            37 => [
182
+                0 => 'dimanche',
183
+                1 => '29/02/2004',
184
+            ],
185
+            38 => [
186
+                0 => 'mardi',
187
+                1 => '20/03/2012',
188
+            ],
189
+            39 => [
190
+                0 => 'mercredi',
191
+                1 => '20/06/2012',
192
+            ],
193
+            40 => [
194
+                0 => 'vendredi',
195
+                1 => '21/09/2012',
196
+            ],
197
+            41 => [
198
+                0 => 'samedi',
199
+                1 => '22/12/2012',
200
+            ],
201
+        ];
202
+    }
203 203
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/DateIcalTest.php 1 patch
Indentation   +111 added lines, -111 removed lines patch added patch discarded remove patch
@@ -13,118 +13,118 @@
 block discarded – undo
13 13
 
14 14
 class DateIcalTest 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
-	protected function setUp(): void {
21
-		date_default_timezone_set('UTC');
22
-	}
20
+    protected function setUp(): void {
21
+        date_default_timezone_set('UTC');
22
+    }
23 23
 
24
-	#[DataProvider('providerFiltresDateIcal')]
25
-	public function testFiltresDateIcal($expected, ...$args): void {
26
-		$actual = date_ical(...$args);
27
-		$this->assertSame($expected, $actual);
28
-	}
24
+    #[DataProvider('providerFiltresDateIcal')]
25
+    public function testFiltresDateIcal($expected, ...$args): void {
26
+        $actual = date_ical(...$args);
27
+        $this->assertSame($expected, $actual);
28
+    }
29 29
 
30
-	public static function providerFiltresDateIcal(): array {
31
-		return [
32
-			0 => [
33
-				0 => '20010101T123344Z',
34
-				1 => '2001-00-00 12:33:44',
35
-			],
36
-			1 => [
37
-				0 => '20010301T091257Z',
38
-				1 => '2001-03-00 09:12:57',
39
-			],
40
-			2 => [
41
-				0 => '20010301T141233Z',
42
-				1 => '2001-02-29 14:12:33',
43
-			],
44
-			3 => [
45
-				0 => '20000101T000000Z',
46
-				1 => '0000-00-00',
47
-			],
48
-			4 => [
49
-				0 => '20010101T000000Z',
50
-				1 => '0001-01-01',
51
-			],
52
-			5 => [
53
-				0 => '19700101T000000Z',
54
-				1 => '1970-01-01',
55
-			],
56
-			6 => [
57
-				0 => '20010705T182524Z',
58
-				1 => '2001-07-05 18:25:24',
59
-			],
60
-			7 => [
61
-				0 => '20010101T000000Z',
62
-				1 => '2001-01-01 00:00:00',
63
-			],
64
-			8 => [
65
-				0 => '20011231T235959Z',
66
-				1 => '2001-12-31 23:59:59',
67
-			],
68
-			9 => [
69
-				0 => '20010301T141233Z',
70
-				1 => '2001-03-01 14:12:33',
71
-			],
72
-			10 => [
73
-				0 => '20040229T141233Z',
74
-				1 => '2004-02-29 14:12:33',
75
-			],
76
-			11 => [
77
-				0 => '20120320T120000Z',
78
-				1 => '2012-03-20 12:00:00',
79
-			],
80
-			12 => [
81
-				0 => '20120621T120000Z',
82
-				1 => '2012-06-21 12:00:00',
83
-			],
84
-			13 => [
85
-				0 => '20121222T120000Z',
86
-				1 => '2012-12-22 12:00:00',
87
-			],
88
-			14 => [
89
-				0 => '20010705T000000Z',
90
-				1 => '2001-07-05',
91
-			],
92
-			15 => [
93
-				0 => '20010101T000000Z',
94
-				1 => '2001-01-01',
95
-			],
96
-			16 => [
97
-				0 => '20011231T000000Z',
98
-				1 => '2001-12-31',
99
-			],
100
-			17 => [
101
-				0 => '20120620T000000Z',
102
-				1 => '2012-06-20',
103
-			],
104
-			18 => [
105
-				0 => '20050701T000000Z',
106
-				1 => '2001/07/05',
107
-			],
108
-			19 => [
109
-				0 => '20010101T000000Z',
110
-				1 => '2001/01/01',
111
-			],
112
-			20 => [
113
-				0 => '20311201T000000Z',
114
-				1 => '2001/12/31',
115
-			],
116
-			21 => [
117
-				0 => '20010301T000000Z',
118
-				1 => '2001/03/01',
119
-			],
120
-			22 => [
121
-				0 => '20290204T000000Z',
122
-				1 => '2004/02/29',
123
-			],
124
-			23 => [
125
-				0 => '20121222T000000Z',
126
-				1 => '22/12/2012',
127
-			],
128
-		];
129
-	}
30
+    public static function providerFiltresDateIcal(): array {
31
+        return [
32
+            0 => [
33
+                0 => '20010101T123344Z',
34
+                1 => '2001-00-00 12:33:44',
35
+            ],
36
+            1 => [
37
+                0 => '20010301T091257Z',
38
+                1 => '2001-03-00 09:12:57',
39
+            ],
40
+            2 => [
41
+                0 => '20010301T141233Z',
42
+                1 => '2001-02-29 14:12:33',
43
+            ],
44
+            3 => [
45
+                0 => '20000101T000000Z',
46
+                1 => '0000-00-00',
47
+            ],
48
+            4 => [
49
+                0 => '20010101T000000Z',
50
+                1 => '0001-01-01',
51
+            ],
52
+            5 => [
53
+                0 => '19700101T000000Z',
54
+                1 => '1970-01-01',
55
+            ],
56
+            6 => [
57
+                0 => '20010705T182524Z',
58
+                1 => '2001-07-05 18:25:24',
59
+            ],
60
+            7 => [
61
+                0 => '20010101T000000Z',
62
+                1 => '2001-01-01 00:00:00',
63
+            ],
64
+            8 => [
65
+                0 => '20011231T235959Z',
66
+                1 => '2001-12-31 23:59:59',
67
+            ],
68
+            9 => [
69
+                0 => '20010301T141233Z',
70
+                1 => '2001-03-01 14:12:33',
71
+            ],
72
+            10 => [
73
+                0 => '20040229T141233Z',
74
+                1 => '2004-02-29 14:12:33',
75
+            ],
76
+            11 => [
77
+                0 => '20120320T120000Z',
78
+                1 => '2012-03-20 12:00:00',
79
+            ],
80
+            12 => [
81
+                0 => '20120621T120000Z',
82
+                1 => '2012-06-21 12:00:00',
83
+            ],
84
+            13 => [
85
+                0 => '20121222T120000Z',
86
+                1 => '2012-12-22 12:00:00',
87
+            ],
88
+            14 => [
89
+                0 => '20010705T000000Z',
90
+                1 => '2001-07-05',
91
+            ],
92
+            15 => [
93
+                0 => '20010101T000000Z',
94
+                1 => '2001-01-01',
95
+            ],
96
+            16 => [
97
+                0 => '20011231T000000Z',
98
+                1 => '2001-12-31',
99
+            ],
100
+            17 => [
101
+                0 => '20120620T000000Z',
102
+                1 => '2012-06-20',
103
+            ],
104
+            18 => [
105
+                0 => '20050701T000000Z',
106
+                1 => '2001/07/05',
107
+            ],
108
+            19 => [
109
+                0 => '20010101T000000Z',
110
+                1 => '2001/01/01',
111
+            ],
112
+            20 => [
113
+                0 => '20311201T000000Z',
114
+                1 => '2001/12/31',
115
+            ],
116
+            21 => [
117
+                0 => '20010301T000000Z',
118
+                1 => '2001/03/01',
119
+            ],
120
+            22 => [
121
+                0 => '20290204T000000Z',
122
+                1 => '2004/02/29',
123
+            ],
124
+            23 => [
125
+                0 => '20121222T000000Z',
126
+                1 => '22/12/2012',
127
+            ],
128
+        ];
129
+    }
130 130
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/AffdateDebutFinTest.php 1 patch
Indentation   +258 added lines, -258 removed lines patch added patch discarded remove patch
@@ -12,264 +12,264 @@
 block discarded – undo
12 12
  */
13 13
 class AffDateDebutFinTest extends TestCase
14 14
 {
15
-	public static function setUpBeforeClass(): void {
16
-		find_in_path('./inc/filtres.php', '', true);
17
-		// Pour que le tests soit independant de la timezone du serveur
18
-		ini_set('date.timezone', 'Europe/Paris');
19
-		changer_langue('fr'); // ce test est en fr
20
-	}
15
+    public static function setUpBeforeClass(): void {
16
+        find_in_path('./inc/filtres.php', '', true);
17
+        // Pour que le tests soit independant de la timezone du serveur
18
+        ini_set('date.timezone', 'Europe/Paris');
19
+        changer_langue('fr'); // ce test est en fr
20
+    }
21 21
 
22
-	#[DataProvider('providerAffdateDebutFin')]
23
-	public function testAffdateDebutFin($expected, ...$args): void {
24
-		$this->assertEquals($expected, affdate_debut_fin(...$args));
25
-	}
22
+    #[DataProvider('providerAffdateDebutFin')]
23
+    public function testAffdateDebutFin($expected, ...$args): void {
24
+        $this->assertEquals($expected, affdate_debut_fin(...$args));
25
+    }
26 26
 
27
-	public static function providerAffdateDebutFin(): array {
28
-		return [
29
-			0 =>
30
-			[
31
-				0 => 'Dimanche 1er juillet 2001 à 12h34',
32
-				1 => '2001-07-01 12:34:00',
33
-				2 => '2001-07-01 12:34:00',
34
-				3 => true,
35
-			],
36
-			1 =>
37
-			[
38
-				0 => 'Dimanche 1er juillet 2001',
39
-				1 => '2001-07-01 12:34:00',
40
-				2 => '2001-07-01 12:34:00',
41
-				3 => false,
42
-			],
43
-			2 =>
44
-			[
45
-				0 => 'Dimanche 1er juillet 2001 de 12h34 à 13h34',
46
-				1 => '2001-07-01 12:34:00',
47
-				2 => '2001-07-01 13:34:00',
48
-				3 => true,
49
-			],
50
-			3 =>
51
-			[
52
-				0 => 'Dimanche 1er juillet 2001',
53
-				1 => '2001-07-01 12:34:00',
54
-				2 => '2001-07-01 13:34:00',
55
-				3 => false,
56
-			],
57
-			4 =>
58
-			[
59
-				0 => 'Du 1er juillet à 12h34 au 2 juillet 2001 à 12h34',
60
-				1 => '2001-07-01 12:34:00',
61
-				2 => '2001-07-02 12:34:00',
62
-				3 => true,
63
-			],
64
-			5 =>
65
-			[
66
-				0 => 'Du 1er au 2 juillet 2001',
67
-				1 => '2001-07-01 12:34:00',
68
-				2 => '2001-07-02 12:34:00',
69
-				3 => false,
70
-			],
71
-			6 =>
72
-			[
73
-				0 => 'Du 1er juillet à 12h34 au 2 juillet 2001 à 13h34',
74
-				1 => '2001-07-01 12:34:00',
75
-				2 => '2001-07-02 13:34:00',
76
-				3 => true,
77
-			],
78
-			7 =>
79
-			[
80
-				0 => 'Du 1er au 2 juillet 2001',
81
-				1 => '2001-07-01 12:34:00',
82
-				2 => '2001-07-02 13:34:00',
83
-				3 => false,
84
-			],
85
-			8 =>
86
-			[
87
-				0 => 'Du 1er juillet à 12h34 au 1er août 2001 à 12h34',
88
-				1 => '2001-07-01 12:34:00',
89
-				2 => '2001-08-01 12:34:00',
90
-				3 => true,
91
-			],
92
-			9 =>
93
-			[
94
-				0 => 'Du 1er juillet au 1er août 2001',
95
-				1 => '2001-07-01 12:34:00',
96
-				2 => '2001-08-01 12:34:00',
97
-				3 => false,
98
-			],
99
-			10 =>
100
-			[
101
-				0 => 'Du 1er juillet 2001 à 12h34 au 1er juillet 2011 à 12h34',
102
-				1 => '2001-07-01 12:34:00',
103
-				2 => '2011-07-01 12:34:00',
104
-				3 => true,
105
-			],
106
-			11 =>
107
-			[
108
-				0 => 'Du 1er juillet 2001 au 1er juillet 2011',
109
-				1 => '2001-07-01 12:34:00',
110
-				2 => '2011-07-01 12:34:00',
111
-				3 => false,
112
-			],
113
-			12 =>
114
-			[
115
-				0 => 'Dim. 1er juillet 2001 à 12h34',
116
-				1 => '2001-07-01 12:34:00',
117
-				2 => '2001-07-01 12:34:00',
118
-				3 => true,
119
-				4 => 'abbr',
120
-			],
121
-			13 =>
122
-			[
123
-				0 => 'Dim. 1er juillet 2001',
124
-				1 => '2001-07-01 12:34:00',
125
-				2 => '2001-07-01 12:34:00',
126
-				3 => false,
127
-				4 => 'abbr',
128
-			],
129
-			14 =>
130
-			[
131
-				0 => 'Dim. 1er juillet 2001 de 12h34 à 13h34',
132
-				1 => '2001-07-01 12:34:00',
133
-				2 => '2001-07-01 13:34:00',
134
-				3 => true,
135
-				4 => 'abbr',
136
-			],
137
-			15 =>
138
-			[
139
-				0 => 'Dim. 1er juillet 2001',
140
-				1 => '2001-07-01 12:34:00',
141
-				2 => '2001-07-01 13:34:00',
142
-				3 => false,
143
-				4 => 'abbr',
144
-			],
145
-			16 =>
146
-			[
147
-				0 => 'Du 1er juillet à 12h34 au 2 juillet 2001 à 12h34',
148
-				1 => '2001-07-01 12:34:00',
149
-				2 => '2001-07-02 12:34:00',
150
-				3 => true,
151
-				4 => 'abbr',
152
-			],
153
-			17 =>
154
-			[
155
-				0 => 'Du 1er au 2 juillet 2001',
156
-				1 => '2001-07-01 12:34:00',
157
-				2 => '2001-07-02 12:34:00',
158
-				3 => false,
159
-				4 => 'abbr',
160
-			],
161
-			18 =>
162
-			[
163
-				0 => 'Du 1er juillet à 12h34 au 1er août 2001 à 12h34',
164
-				1 => '2001-07-01 12:34:00',
165
-				2 => '2001-08-01 12:34:00',
166
-				3 => true,
167
-				4 => 'abbr',
168
-			],
169
-			19 =>
170
-			[
171
-				0 => 'Du 1er juillet au 1er août 2001',
172
-				1 => '2001-07-01 12:34:00',
173
-				2 => '2001-08-01 12:34:00',
174
-				3 => false,
175
-				4 => 'abbr',
176
-			],
177
-			20 =>
178
-			[
179
-				0 => 'Du 1er juillet 2001 à 12h34 au 1er juillet 2011 à 12h34',
180
-				1 => '2001-07-01 12:34:00',
181
-				2 => '2011-07-01 12:34:00',
182
-				3 => true,
183
-				4 => 'abbr',
184
-			],
185
-			21 =>
186
-			[
187
-				0 => 'Du 1er juillet 2001 au 1er juillet 2011',
188
-				1 => '2001-07-01 12:34:00',
189
-				2 => '2011-07-01 12:34:00',
190
-				3 => false,
191
-				4 => 'abbr',
192
-			],
193
-			22 =>
194
-			[
195
-				0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001 à 12h34</abbr>",
196
-				1 => '2001-07-01 12:34:00',
197
-				2 => '2001-07-01 12:34:00',
198
-				3 => true,
199
-				4 => 'hcal',
200
-			],
201
-			23 =>
202
-			[
203
-				0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001</abbr>",
204
-				1 => '2001-07-01 12:34:00',
205
-				2 => '2001-07-01 12:34:00',
206
-				3 => false,
207
-				4 => 'hcal',
208
-			],
209
-			24 =>
210
-			[
211
-				0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001 de 12h34</abbr> à <abbr class='dtend' title='2001-07-01T11:34:00Z'>13h34</abbr>",
212
-				1 => '2001-07-01 12:34:00',
213
-				2 => '2001-07-01 13:34:00',
214
-				3 => true,
215
-				4 => 'hcal',
216
-			],
217
-			25 =>
218
-			[
219
-				0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001</abbr>",
220
-				1 => '2001-07-01 12:34:00',
221
-				2 => '2001-07-01 13:34:00',
222
-				3 => false,
223
-				4 => 'hcal',
224
-			],
225
-			26 =>
226
-			[
227
-				0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet à 12h34</abbr> au <abbr class="dtend" title="2001-07-02T10:34:00Z">2 juillet 2001 à 12h34</abbr>',
228
-				1 => '2001-07-01 12:34:00',
229
-				2 => '2001-07-02 12:34:00',
230
-				3 => true,
231
-				4 => 'hcal',
232
-			],
233
-			27 =>
234
-			[
235
-				0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er</abbr> au <abbr class="dtend" title="2001-07-02T10:34:00Z">2 juillet 2001</abbr>',
236
-				1 => '2001-07-01 12:34:00',
237
-				2 => '2001-07-02 12:34:00',
238
-				3 => false,
239
-				4 => 'hcal',
240
-			],
241
-			28 =>
242
-			[
243
-				0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet à 12h34</abbr> au <abbr class="dtend" title="2001-08-01T10:34:00Z">1er août 2001 à 12h34</abbr>',
244
-				1 => '2001-07-01 12:34:00',
245
-				2 => '2001-08-01 12:34:00',
246
-				3 => true,
247
-				4 => 'hcal',
248
-			],
249
-			29 =>
250
-			[
251
-				0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet</abbr> au <abbr class="dtend" title="2001-08-01T10:34:00Z">1er août 2001</abbr>',
252
-				1 => '2001-07-01 12:34:00',
253
-				2 => '2001-08-01 12:34:00',
254
-				3 => false,
255
-				4 => 'hcal',
256
-			],
257
-			30 =>
258
-			[
259
-				0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet 2001 à 12h34</abbr> au <abbr class="dtend" title="2011-07-01T10:34:00Z">1er juillet 2011 à 12h34</abbr>',
260
-				1 => '2001-07-01 12:34:00',
261
-				2 => '2011-07-01 12:34:00',
262
-				3 => true,
263
-				4 => 'hcal',
264
-			],
265
-			31 =>
266
-			[
267
-				0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet 2001</abbr> au <abbr class="dtend" title="2011-07-01T10:34:00Z">1er juillet 2011</abbr>',
268
-				1 => '2001-07-01 12:34:00',
269
-				2 => '2011-07-01 12:34:00',
270
-				3 => false,
271
-				4 => 'hcal',
272
-			],
273
-		];
274
-	}
27
+    public static function providerAffdateDebutFin(): array {
28
+        return [
29
+            0 =>
30
+            [
31
+                0 => 'Dimanche 1er juillet 2001 à 12h34',
32
+                1 => '2001-07-01 12:34:00',
33
+                2 => '2001-07-01 12:34:00',
34
+                3 => true,
35
+            ],
36
+            1 =>
37
+            [
38
+                0 => 'Dimanche 1er juillet 2001',
39
+                1 => '2001-07-01 12:34:00',
40
+                2 => '2001-07-01 12:34:00',
41
+                3 => false,
42
+            ],
43
+            2 =>
44
+            [
45
+                0 => 'Dimanche 1er juillet 2001 de 12h34 à 13h34',
46
+                1 => '2001-07-01 12:34:00',
47
+                2 => '2001-07-01 13:34:00',
48
+                3 => true,
49
+            ],
50
+            3 =>
51
+            [
52
+                0 => 'Dimanche 1er juillet 2001',
53
+                1 => '2001-07-01 12:34:00',
54
+                2 => '2001-07-01 13:34:00',
55
+                3 => false,
56
+            ],
57
+            4 =>
58
+            [
59
+                0 => 'Du 1er juillet à 12h34 au 2 juillet 2001 à 12h34',
60
+                1 => '2001-07-01 12:34:00',
61
+                2 => '2001-07-02 12:34:00',
62
+                3 => true,
63
+            ],
64
+            5 =>
65
+            [
66
+                0 => 'Du 1er au 2 juillet 2001',
67
+                1 => '2001-07-01 12:34:00',
68
+                2 => '2001-07-02 12:34:00',
69
+                3 => false,
70
+            ],
71
+            6 =>
72
+            [
73
+                0 => 'Du 1er juillet à 12h34 au 2 juillet 2001 à 13h34',
74
+                1 => '2001-07-01 12:34:00',
75
+                2 => '2001-07-02 13:34:00',
76
+                3 => true,
77
+            ],
78
+            7 =>
79
+            [
80
+                0 => 'Du 1er au 2 juillet 2001',
81
+                1 => '2001-07-01 12:34:00',
82
+                2 => '2001-07-02 13:34:00',
83
+                3 => false,
84
+            ],
85
+            8 =>
86
+            [
87
+                0 => 'Du 1er juillet à 12h34 au 1er août 2001 à 12h34',
88
+                1 => '2001-07-01 12:34:00',
89
+                2 => '2001-08-01 12:34:00',
90
+                3 => true,
91
+            ],
92
+            9 =>
93
+            [
94
+                0 => 'Du 1er juillet au 1er août 2001',
95
+                1 => '2001-07-01 12:34:00',
96
+                2 => '2001-08-01 12:34:00',
97
+                3 => false,
98
+            ],
99
+            10 =>
100
+            [
101
+                0 => 'Du 1er juillet 2001 à 12h34 au 1er juillet 2011 à 12h34',
102
+                1 => '2001-07-01 12:34:00',
103
+                2 => '2011-07-01 12:34:00',
104
+                3 => true,
105
+            ],
106
+            11 =>
107
+            [
108
+                0 => 'Du 1er juillet 2001 au 1er juillet 2011',
109
+                1 => '2001-07-01 12:34:00',
110
+                2 => '2011-07-01 12:34:00',
111
+                3 => false,
112
+            ],
113
+            12 =>
114
+            [
115
+                0 => 'Dim. 1er juillet 2001 à 12h34',
116
+                1 => '2001-07-01 12:34:00',
117
+                2 => '2001-07-01 12:34:00',
118
+                3 => true,
119
+                4 => 'abbr',
120
+            ],
121
+            13 =>
122
+            [
123
+                0 => 'Dim. 1er juillet 2001',
124
+                1 => '2001-07-01 12:34:00',
125
+                2 => '2001-07-01 12:34:00',
126
+                3 => false,
127
+                4 => 'abbr',
128
+            ],
129
+            14 =>
130
+            [
131
+                0 => 'Dim. 1er juillet 2001 de 12h34 à 13h34',
132
+                1 => '2001-07-01 12:34:00',
133
+                2 => '2001-07-01 13:34:00',
134
+                3 => true,
135
+                4 => 'abbr',
136
+            ],
137
+            15 =>
138
+            [
139
+                0 => 'Dim. 1er juillet 2001',
140
+                1 => '2001-07-01 12:34:00',
141
+                2 => '2001-07-01 13:34:00',
142
+                3 => false,
143
+                4 => 'abbr',
144
+            ],
145
+            16 =>
146
+            [
147
+                0 => 'Du 1er juillet à 12h34 au 2 juillet 2001 à 12h34',
148
+                1 => '2001-07-01 12:34:00',
149
+                2 => '2001-07-02 12:34:00',
150
+                3 => true,
151
+                4 => 'abbr',
152
+            ],
153
+            17 =>
154
+            [
155
+                0 => 'Du 1er au 2 juillet 2001',
156
+                1 => '2001-07-01 12:34:00',
157
+                2 => '2001-07-02 12:34:00',
158
+                3 => false,
159
+                4 => 'abbr',
160
+            ],
161
+            18 =>
162
+            [
163
+                0 => 'Du 1er juillet à 12h34 au 1er août 2001 à 12h34',
164
+                1 => '2001-07-01 12:34:00',
165
+                2 => '2001-08-01 12:34:00',
166
+                3 => true,
167
+                4 => 'abbr',
168
+            ],
169
+            19 =>
170
+            [
171
+                0 => 'Du 1er juillet au 1er août 2001',
172
+                1 => '2001-07-01 12:34:00',
173
+                2 => '2001-08-01 12:34:00',
174
+                3 => false,
175
+                4 => 'abbr',
176
+            ],
177
+            20 =>
178
+            [
179
+                0 => 'Du 1er juillet 2001 à 12h34 au 1er juillet 2011 à 12h34',
180
+                1 => '2001-07-01 12:34:00',
181
+                2 => '2011-07-01 12:34:00',
182
+                3 => true,
183
+                4 => 'abbr',
184
+            ],
185
+            21 =>
186
+            [
187
+                0 => 'Du 1er juillet 2001 au 1er juillet 2011',
188
+                1 => '2001-07-01 12:34:00',
189
+                2 => '2011-07-01 12:34:00',
190
+                3 => false,
191
+                4 => 'abbr',
192
+            ],
193
+            22 =>
194
+            [
195
+                0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001 à 12h34</abbr>",
196
+                1 => '2001-07-01 12:34:00',
197
+                2 => '2001-07-01 12:34:00',
198
+                3 => true,
199
+                4 => 'hcal',
200
+            ],
201
+            23 =>
202
+            [
203
+                0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001</abbr>",
204
+                1 => '2001-07-01 12:34:00',
205
+                2 => '2001-07-01 12:34:00',
206
+                3 => false,
207
+                4 => 'hcal',
208
+            ],
209
+            24 =>
210
+            [
211
+                0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001 de 12h34</abbr> à <abbr class='dtend' title='2001-07-01T11:34:00Z'>13h34</abbr>",
212
+                1 => '2001-07-01 12:34:00',
213
+                2 => '2001-07-01 13:34:00',
214
+                3 => true,
215
+                4 => 'hcal',
216
+            ],
217
+            25 =>
218
+            [
219
+                0 => "<abbr class='dtstart' title='2001-07-01T10:34:00Z'>Dimanche 1er juillet 2001</abbr>",
220
+                1 => '2001-07-01 12:34:00',
221
+                2 => '2001-07-01 13:34:00',
222
+                3 => false,
223
+                4 => 'hcal',
224
+            ],
225
+            26 =>
226
+            [
227
+                0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet à 12h34</abbr> au <abbr class="dtend" title="2001-07-02T10:34:00Z">2 juillet 2001 à 12h34</abbr>',
228
+                1 => '2001-07-01 12:34:00',
229
+                2 => '2001-07-02 12:34:00',
230
+                3 => true,
231
+                4 => 'hcal',
232
+            ],
233
+            27 =>
234
+            [
235
+                0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er</abbr> au <abbr class="dtend" title="2001-07-02T10:34:00Z">2 juillet 2001</abbr>',
236
+                1 => '2001-07-01 12:34:00',
237
+                2 => '2001-07-02 12:34:00',
238
+                3 => false,
239
+                4 => 'hcal',
240
+            ],
241
+            28 =>
242
+            [
243
+                0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet à 12h34</abbr> au <abbr class="dtend" title="2001-08-01T10:34:00Z">1er août 2001 à 12h34</abbr>',
244
+                1 => '2001-07-01 12:34:00',
245
+                2 => '2001-08-01 12:34:00',
246
+                3 => true,
247
+                4 => 'hcal',
248
+            ],
249
+            29 =>
250
+            [
251
+                0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet</abbr> au <abbr class="dtend" title="2001-08-01T10:34:00Z">1er août 2001</abbr>',
252
+                1 => '2001-07-01 12:34:00',
253
+                2 => '2001-08-01 12:34:00',
254
+                3 => false,
255
+                4 => 'hcal',
256
+            ],
257
+            30 =>
258
+            [
259
+                0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet 2001 à 12h34</abbr> au <abbr class="dtend" title="2011-07-01T10:34:00Z">1er juillet 2011 à 12h34</abbr>',
260
+                1 => '2001-07-01 12:34:00',
261
+                2 => '2011-07-01 12:34:00',
262
+                3 => true,
263
+                4 => 'hcal',
264
+            ],
265
+            31 =>
266
+            [
267
+                0 => 'Du <abbr class="dtstart" title="2001-07-01T10:34:00Z">1er juillet 2001</abbr> au <abbr class="dtend" title="2011-07-01T10:34:00Z">1er juillet 2011</abbr>',
268
+                1 => '2001-07-01 12:34:00',
269
+                2 => '2011-07-01 12:34:00',
270
+                3 => false,
271
+                4 => 'hcal',
272
+            ],
273
+        ];
274
+    }
275 275
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/AffdateJourcourtTest.php 1 patch
Indentation   +151 added lines, -151 removed lines patch added patch discarded remove patch
@@ -13,158 +13,158 @@
 block discarded – undo
13 13
 
14 14
 class AffdateJourcourtTest 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
-	protected function setUp(): void {
21
-		changer_langue('fr');
22
-		// ce test est en fr
23
-	}
20
+    protected function setUp(): void {
21
+        changer_langue('fr');
22
+        // ce test est en fr
23
+    }
24 24
 
25
-	#[DataProvider('providerFiltresAffdateJourcourt')]
26
-	public function testFiltresAffdateJourcourt($expected, ...$args): void {
27
-		$actual = affdate_jourcourt(...$args);
28
-		$this->assertSame($expected, $actual);
29
-	}
25
+    #[DataProvider('providerFiltresAffdateJourcourt')]
26
+    public function testFiltresAffdateJourcourt($expected, ...$args): void {
27
+        $actual = affdate_jourcourt(...$args);
28
+        $this->assertSame($expected, $actual);
29
+    }
30 30
 
31
-	public static function providerFiltresAffdateJourcourt(): array {
32
-		return [
33
-			0 => [
34
-				0 => '  2001',
35
-				1 => '2001-00-00 12:33:44',
36
-				2 => '2011',
37
-			],
38
-			1 => [
39
-				0 => ' mars 2001',
40
-				1 => '2001-03-00 09:12:57',
41
-				2 => '2011',
42
-			],
43
-			2 => [
44
-				0 => '29 février 2001',
45
-				1 => '2001-02-29 14:12:33',
46
-				2 => '2011',
47
-			],
48
-			3 => [
49
-				0 => '0000',
50
-				1 => '0000-00-00',
51
-				2 => '2011',
52
-			],
53
-			4 => [
54
-				0 => '0001',
55
-				1 => '0001-01-01',
56
-				2 => '2011',
57
-			],
58
-			5 => [
59
-				0 => '1er janvier 1970',
60
-				1 => '1970-01-01',
61
-				2 => '2011',
62
-			],
63
-			6 => [
64
-				0 => '5 juillet 2001',
65
-				1 => '2001-07-05 18:25:24',
66
-				2 => '2011',
67
-			],
68
-			7 => [
69
-				0 => '1er janvier 2001',
70
-				1 => '2001-01-01 00:00:00',
71
-				2 => '2011',
72
-			],
73
-			8 => [
74
-				0 => '31 décembre 2001',
75
-				1 => '2001-12-31 23:59:59',
76
-				2 => '2011',
77
-			],
78
-			9 => [
79
-				0 => '1er mars 2001',
80
-				1 => '2001-03-01 14:12:33',
81
-				2 => '2011',
82
-			],
83
-			10 => [
84
-				0 => '29 février 2004',
85
-				1 => '2004-02-29 14:12:33',
86
-				2 => '2011',
87
-			],
88
-			11 => [
89
-				0 => '20 mars 2012',
90
-				1 => '2012-03-20 12:00:00',
91
-				2 => '2011',
92
-			],
93
-			12 => [
94
-				0 => '21 juin 2012',
95
-				1 => '2012-06-21 12:00:00',
96
-				2 => '2011',
97
-			],
98
-			13 => [
99
-				0 => '22 septembre 2012',
100
-				1 => '2012-09-22 12:00:00',
101
-				2 => '2011',
102
-			],
103
-			14 => [
104
-				0 => '22 décembre 2012',
105
-				1 => '2012-12-22 12:00:00',
106
-				2 => '2011',
107
-			],
108
-			15 => [
109
-				0 => '5 juillet 2001',
110
-				1 => '2001-07-05',
111
-				2 => '2011',
112
-			],
113
-			16 => [
114
-				0 => '1er janvier 2001',
115
-				1 => '2001-01-01',
116
-				2 => '2011',
117
-			],
118
-			17 => [
119
-				0 => '31 décembre 2001',
120
-				1 => '2001-12-31',
121
-				2 => '2011',
122
-			],
123
-			18 => [
124
-				0 => '1er mars 2001',
125
-				1 => '2001-03-01',
126
-				2 => '2011',
127
-			],
128
-			19 => [
129
-				0 => '29 février 2004',
130
-				1 => '2004-02-29',
131
-				2 => '2011',
132
-			],
133
-			20 => [
134
-				0 => '20 mars 2012',
135
-				1 => '2012-03-20',
136
-				2 => '2011',
137
-			],
138
-			21 => [
139
-				0 => '1er janvier 2001',
140
-				1 => '2001/01/01',
141
-				2 => '2011',
142
-			],
143
-			22 => [
144
-				0 => '1er décembre 2031',
145
-				1 => '2001/12/31',
146
-				2 => '2011',
147
-			],
148
-			23 => [
149
-				0 => '1er mars 2001',
150
-				1 => '2001/03/01',
151
-				2 => '2011',
152
-			],
153
-			24 => [
154
-				0 => '4 février 2029',
155
-				1 => '2004/02/29',
156
-				2 => '2011',
157
-			],
158
-			25 => [
159
-				0 => '12 mars 2020',
160
-				1 => '2012/03/20',
161
-				2 => '2011',
162
-			],
163
-			26 => [
164
-				0 => '22 décembre 2012',
165
-				1 => '22/12/2012',
166
-				2 => '2011',
167
-			],
168
-		];
169
-	}
31
+    public static function providerFiltresAffdateJourcourt(): array {
32
+        return [
33
+            0 => [
34
+                0 => '  2001',
35
+                1 => '2001-00-00 12:33:44',
36
+                2 => '2011',
37
+            ],
38
+            1 => [
39
+                0 => ' mars 2001',
40
+                1 => '2001-03-00 09:12:57',
41
+                2 => '2011',
42
+            ],
43
+            2 => [
44
+                0 => '29 février 2001',
45
+                1 => '2001-02-29 14:12:33',
46
+                2 => '2011',
47
+            ],
48
+            3 => [
49
+                0 => '0000',
50
+                1 => '0000-00-00',
51
+                2 => '2011',
52
+            ],
53
+            4 => [
54
+                0 => '0001',
55
+                1 => '0001-01-01',
56
+                2 => '2011',
57
+            ],
58
+            5 => [
59
+                0 => '1er janvier 1970',
60
+                1 => '1970-01-01',
61
+                2 => '2011',
62
+            ],
63
+            6 => [
64
+                0 => '5 juillet 2001',
65
+                1 => '2001-07-05 18:25:24',
66
+                2 => '2011',
67
+            ],
68
+            7 => [
69
+                0 => '1er janvier 2001',
70
+                1 => '2001-01-01 00:00:00',
71
+                2 => '2011',
72
+            ],
73
+            8 => [
74
+                0 => '31 décembre 2001',
75
+                1 => '2001-12-31 23:59:59',
76
+                2 => '2011',
77
+            ],
78
+            9 => [
79
+                0 => '1er mars 2001',
80
+                1 => '2001-03-01 14:12:33',
81
+                2 => '2011',
82
+            ],
83
+            10 => [
84
+                0 => '29 février 2004',
85
+                1 => '2004-02-29 14:12:33',
86
+                2 => '2011',
87
+            ],
88
+            11 => [
89
+                0 => '20 mars 2012',
90
+                1 => '2012-03-20 12:00:00',
91
+                2 => '2011',
92
+            ],
93
+            12 => [
94
+                0 => '21 juin 2012',
95
+                1 => '2012-06-21 12:00:00',
96
+                2 => '2011',
97
+            ],
98
+            13 => [
99
+                0 => '22 septembre 2012',
100
+                1 => '2012-09-22 12:00:00',
101
+                2 => '2011',
102
+            ],
103
+            14 => [
104
+                0 => '22 décembre 2012',
105
+                1 => '2012-12-22 12:00:00',
106
+                2 => '2011',
107
+            ],
108
+            15 => [
109
+                0 => '5 juillet 2001',
110
+                1 => '2001-07-05',
111
+                2 => '2011',
112
+            ],
113
+            16 => [
114
+                0 => '1er janvier 2001',
115
+                1 => '2001-01-01',
116
+                2 => '2011',
117
+            ],
118
+            17 => [
119
+                0 => '31 décembre 2001',
120
+                1 => '2001-12-31',
121
+                2 => '2011',
122
+            ],
123
+            18 => [
124
+                0 => '1er mars 2001',
125
+                1 => '2001-03-01',
126
+                2 => '2011',
127
+            ],
128
+            19 => [
129
+                0 => '29 février 2004',
130
+                1 => '2004-02-29',
131
+                2 => '2011',
132
+            ],
133
+            20 => [
134
+                0 => '20 mars 2012',
135
+                1 => '2012-03-20',
136
+                2 => '2011',
137
+            ],
138
+            21 => [
139
+                0 => '1er janvier 2001',
140
+                1 => '2001/01/01',
141
+                2 => '2011',
142
+            ],
143
+            22 => [
144
+                0 => '1er décembre 2031',
145
+                1 => '2001/12/31',
146
+                2 => '2011',
147
+            ],
148
+            23 => [
149
+                0 => '1er mars 2001',
150
+                1 => '2001/03/01',
151
+                2 => '2011',
152
+            ],
153
+            24 => [
154
+                0 => '4 février 2029',
155
+                1 => '2004/02/29',
156
+                2 => '2011',
157
+            ],
158
+            25 => [
159
+                0 => '12 mars 2020',
160
+                1 => '2012/03/20',
161
+                2 => '2011',
162
+            ],
163
+            26 => [
164
+                0 => '22 décembre 2012',
165
+                1 => '22/12/2012',
166
+                2 => '2011',
167
+            ],
168
+        ];
169
+    }
170 170
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/DateInterfaceTest.php 1 patch
Indentation   +172 added lines, -172 removed lines patch added patch discarded remove patch
@@ -13,179 +13,179 @@
 block discarded – undo
13 13
 
14 14
 class DateInterfaceTest 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
-	protected function setUp(): void {
21
-		changer_langue('fr');
22
-		// ce test est en fr
23
-	}
20
+    protected function setUp(): void {
21
+        changer_langue('fr');
22
+        // ce test est en fr
23
+    }
24 24
 
25
-	#[DataProvider('providerFiltresDateInterface')]
26
-	public function testFiltresDateInterface($expected, ...$args): void {
27
-		$actual = date_interface(...$args);
28
-		$this->assertSame($expected, $actual);
29
-	}
25
+    #[DataProvider('providerFiltresDateInterface')]
26
+    public function testFiltresDateInterface($expected, ...$args): void {
27
+        $actual = date_interface(...$args);
28
+        $this->assertSame($expected, $actual);
29
+    }
30 30
 
31
-	public static function providerFiltresDateInterface(): array {
32
-		return [
33
-			0 => [
34
-				0 => '2001 à 12h33min',
35
-				1 => '2001-00-00 12:33:44',
36
-			],
37
-			1 => [
38
-				0 => 'mars 2001 à 09h12min',
39
-				1 => '2001-03-00 09:12:57',
40
-			],
41
-			2 => [
42
-				0 => '29 février 2001 à 14h12min',
43
-				1 => '2001-02-29 14:12:33',
44
-			],
45
-			3 => [
46
-				0 => '0000 à 0h0min',
47
-				1 => '0000-00-00',
48
-			],
49
-			4 => [
50
-				0 => '1er janvier 0001 à 0h0min',
51
-				1 => '0001-01-01',
52
-			],
53
-			5 => [
54
-				0 => '1er janvier 1970 à 0h0min',
55
-				1 => '1970-01-01',
56
-			],
57
-			6 => [
58
-				0 => '5 juillet 2001 à 18h25min',
59
-				1 => '2001-07-05 18:25:24',
60
-			],
61
-			7 => [
62
-				0 => '1er janvier 2001 à 00h00min',
63
-				1 => '2001-01-01 00:00:00',
64
-			],
65
-			8 => [
66
-				0 => '31 décembre 2001 à 23h59min',
67
-				1 => '2001-12-31 23:59:59',
68
-			],
69
-			9 => [
70
-				0 => '1er mars 2001 à 14h12min',
71
-				1 => '2001-03-01 14:12:33',
72
-			],
73
-			10 => [
74
-				0 => '29 février 2004 à 14h12min',
75
-				1 => '2004-02-29 14:12:33',
76
-			],
77
-			11 => [
78
-				0 => '20 mars 2012 à 12h00min',
79
-				1 => '2012-03-20 12:00:00',
80
-			],
81
-			12 => [
82
-				0 => '21 mars 2012 à 12h00min',
83
-				1 => '2012-03-21 12:00:00',
84
-			],
85
-			14 => [
86
-				0 => '22 juin 2012 à 12h00min',
87
-				1 => '2012-06-22 12:00:00',
88
-			],
89
-			15 => [
90
-				0 => '22 décembre 2012 à 12h00min',
91
-				1 => '2012-12-22 12:00:00',
92
-			],
93
-			16 => [
94
-				0 => '5 juillet 2001 à 0h0min',
95
-				1 => '2001-07-05',
96
-			],
97
-			17 => [
98
-				0 => '1er janvier 2001 à 0h0min',
99
-				1 => '2001-01-01',
100
-			],
101
-			18 => [
102
-				0 => '31 décembre 2001 à 0h0min',
103
-				1 => '2001-12-31',
104
-			],
105
-			19 => [
106
-				0 => '1er mars 2001 à 0h0min',
107
-				1 => '2001-03-01',
108
-			],
109
-			20 => [
110
-				0 => '29 février 2004 à 0h0min',
111
-				1 => '2004-02-29',
112
-			],
113
-			21 => [
114
-				0 => '20 mars 2012 à 0h0min',
115
-				1 => '2012-03-20',
116
-			],
117
-			22 => [
118
-				0 => '22 juin 2012 à 0h0min',
119
-				1 => '2012-06-22',
120
-			],
121
-			23 => [
122
-				0 => '22 décembre 2012 à 0h0min',
123
-				1 => '2012-12-22',
124
-			],
125
-			24 => [
126
-				0 => '1er juillet 2005 à 0h0min',
127
-				1 => '2001/07/05',
128
-			],
129
-			25 => [
130
-				0 => '1er janvier 2001 à 0h0min',
131
-				1 => '2001/01/01',
132
-			],
133
-			26 => [
134
-				0 => '1er décembre 2031 à 0h0min',
135
-				1 => '2001/12/31',
136
-			],
137
-			27 => [
138
-				0 => '1er mars 2001 à 0h0min',
139
-				1 => '2001/03/01',
140
-			],
141
-			28 => [
142
-				0 => '4 février 2029 à 0h0min',
143
-				1 => '2004/02/29',
144
-			],
145
-			29 => [
146
-				0 => '12 mars 2020 à 0h0min',
147
-				1 => '2012/03/20',
148
-			],
149
-			30 => [
150
-				0 => '12 mars 2021 à 0h0min',
151
-				1 => '2012/03/21',
152
-			],
153
-			31 => [
154
-				0 => '12 juin 2021 à 0h0min',
155
-				1 => '2012/06/21',
156
-			],
157
-			32 => [
158
-				0 => '12 septembre 2022 à 0h0min',
159
-				1 => '2012/09/22',
160
-			],
161
-			33 => [
162
-				0 => '12 décembre 2020 à 0h0min',
163
-				1 => '2012/12/20',
164
-			],
165
-			34 => [
166
-				0 => '5 juillet 2001 à 0h0min',
167
-				1 => '05/07/2001',
168
-			],
169
-			35 => [
170
-				0 => '1er janvier 2001 à 0h0min',
171
-				1 => '01/01/2001',
172
-			],
173
-			36 => [
174
-				0 => '31 décembre 2001 à 0h0min',
175
-				1 => '31/12/2001',
176
-			],
177
-			37 => [
178
-				0 => '1er mars 2001 à 0h0min',
179
-				1 => '01/03/2001',
180
-			],
181
-			38 => [
182
-				0 => '29 février 2004 à 0h0min',
183
-				1 => '29/02/2004',
184
-			],
185
-			39 => [
186
-				0 => '22 décembre 2012 à 0h0min',
187
-				1 => '22/12/2012',
188
-			],
189
-		];
190
-	}
31
+    public static function providerFiltresDateInterface(): array {
32
+        return [
33
+            0 => [
34
+                0 => '2001 à 12h33min',
35
+                1 => '2001-00-00 12:33:44',
36
+            ],
37
+            1 => [
38
+                0 => 'mars 2001 à 09h12min',
39
+                1 => '2001-03-00 09:12:57',
40
+            ],
41
+            2 => [
42
+                0 => '29 février 2001 à 14h12min',
43
+                1 => '2001-02-29 14:12:33',
44
+            ],
45
+            3 => [
46
+                0 => '0000 à 0h0min',
47
+                1 => '0000-00-00',
48
+            ],
49
+            4 => [
50
+                0 => '1er janvier 0001 à 0h0min',
51
+                1 => '0001-01-01',
52
+            ],
53
+            5 => [
54
+                0 => '1er janvier 1970 à 0h0min',
55
+                1 => '1970-01-01',
56
+            ],
57
+            6 => [
58
+                0 => '5 juillet 2001 à 18h25min',
59
+                1 => '2001-07-05 18:25:24',
60
+            ],
61
+            7 => [
62
+                0 => '1er janvier 2001 à 00h00min',
63
+                1 => '2001-01-01 00:00:00',
64
+            ],
65
+            8 => [
66
+                0 => '31 décembre 2001 à 23h59min',
67
+                1 => '2001-12-31 23:59:59',
68
+            ],
69
+            9 => [
70
+                0 => '1er mars 2001 à 14h12min',
71
+                1 => '2001-03-01 14:12:33',
72
+            ],
73
+            10 => [
74
+                0 => '29 février 2004 à 14h12min',
75
+                1 => '2004-02-29 14:12:33',
76
+            ],
77
+            11 => [
78
+                0 => '20 mars 2012 à 12h00min',
79
+                1 => '2012-03-20 12:00:00',
80
+            ],
81
+            12 => [
82
+                0 => '21 mars 2012 à 12h00min',
83
+                1 => '2012-03-21 12:00:00',
84
+            ],
85
+            14 => [
86
+                0 => '22 juin 2012 à 12h00min',
87
+                1 => '2012-06-22 12:00:00',
88
+            ],
89
+            15 => [
90
+                0 => '22 décembre 2012 à 12h00min',
91
+                1 => '2012-12-22 12:00:00',
92
+            ],
93
+            16 => [
94
+                0 => '5 juillet 2001 à 0h0min',
95
+                1 => '2001-07-05',
96
+            ],
97
+            17 => [
98
+                0 => '1er janvier 2001 à 0h0min',
99
+                1 => '2001-01-01',
100
+            ],
101
+            18 => [
102
+                0 => '31 décembre 2001 à 0h0min',
103
+                1 => '2001-12-31',
104
+            ],
105
+            19 => [
106
+                0 => '1er mars 2001 à 0h0min',
107
+                1 => '2001-03-01',
108
+            ],
109
+            20 => [
110
+                0 => '29 février 2004 à 0h0min',
111
+                1 => '2004-02-29',
112
+            ],
113
+            21 => [
114
+                0 => '20 mars 2012 à 0h0min',
115
+                1 => '2012-03-20',
116
+            ],
117
+            22 => [
118
+                0 => '22 juin 2012 à 0h0min',
119
+                1 => '2012-06-22',
120
+            ],
121
+            23 => [
122
+                0 => '22 décembre 2012 à 0h0min',
123
+                1 => '2012-12-22',
124
+            ],
125
+            24 => [
126
+                0 => '1er juillet 2005 à 0h0min',
127
+                1 => '2001/07/05',
128
+            ],
129
+            25 => [
130
+                0 => '1er janvier 2001 à 0h0min',
131
+                1 => '2001/01/01',
132
+            ],
133
+            26 => [
134
+                0 => '1er décembre 2031 à 0h0min',
135
+                1 => '2001/12/31',
136
+            ],
137
+            27 => [
138
+                0 => '1er mars 2001 à 0h0min',
139
+                1 => '2001/03/01',
140
+            ],
141
+            28 => [
142
+                0 => '4 février 2029 à 0h0min',
143
+                1 => '2004/02/29',
144
+            ],
145
+            29 => [
146
+                0 => '12 mars 2020 à 0h0min',
147
+                1 => '2012/03/20',
148
+            ],
149
+            30 => [
150
+                0 => '12 mars 2021 à 0h0min',
151
+                1 => '2012/03/21',
152
+            ],
153
+            31 => [
154
+                0 => '12 juin 2021 à 0h0min',
155
+                1 => '2012/06/21',
156
+            ],
157
+            32 => [
158
+                0 => '12 septembre 2022 à 0h0min',
159
+                1 => '2012/09/22',
160
+            ],
161
+            33 => [
162
+                0 => '12 décembre 2020 à 0h0min',
163
+                1 => '2012/12/20',
164
+            ],
165
+            34 => [
166
+                0 => '5 juillet 2001 à 0h0min',
167
+                1 => '05/07/2001',
168
+            ],
169
+            35 => [
170
+                0 => '1er janvier 2001 à 0h0min',
171
+                1 => '01/01/2001',
172
+            ],
173
+            36 => [
174
+                0 => '31 décembre 2001 à 0h0min',
175
+                1 => '31/12/2001',
176
+            ],
177
+            37 => [
178
+                0 => '1er mars 2001 à 0h0min',
179
+                1 => '01/03/2001',
180
+            ],
181
+            38 => [
182
+                0 => '29 février 2004 à 0h0min',
183
+                1 => '29/02/2004',
184
+            ],
185
+            39 => [
186
+                0 => '22 décembre 2012 à 0h0min',
187
+                1 => '22/12/2012',
188
+            ],
189
+        ];
190
+    }
191 191
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/Date/DateRelativeTest.php 1 patch
Indentation   +294 added lines, -294 removed lines patch added patch discarded remove patch
@@ -13,301 +13,301 @@
 block discarded – undo
13 13
 
14 14
 class DateRelativeTest 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
-	protected function setUp(): void {
21
-		// Pour que le tests soit independant de la timezone du serveur
22
-		date_default_timezone_set('Europe/Paris');
23
-		changer_langue('fr');
24
-		// ce test est en fr
25
-	}
20
+    protected function setUp(): void {
21
+        // Pour que le tests soit independant de la timezone du serveur
22
+        date_default_timezone_set('Europe/Paris');
23
+        changer_langue('fr');
24
+        // ce test est en fr
25
+    }
26 26
 
27
-	#[DataProvider('providerFiltresDateRelative')]
28
-	public function testFiltresDateRelative($expected, ...$args): void {
29
-		$actual = date_relative(...$args);
30
-		$this->assertSame($expected, $actual);
31
-	}
27
+    #[DataProvider('providerFiltresDateRelative')]
28
+    public function testFiltresDateRelative($expected, ...$args): void {
29
+        $actual = date_relative(...$args);
30
+        $this->assertSame($expected, $actual);
31
+    }
32 32
 
33
-	public static function providerFiltresDateRelative(): array {
34
-		return [
35
-			0 => [
36
-				0 => 'dans 1 heure',
37
-				1 => '2010-03-14 23:18:57',
38
-				2 => 0,
39
-				3 => '2010-03-14 22:18:57',
40
-			],
41
-			1 => [
42
-				0 => 'dans 2 heures',
43
-				1 => '2010-03-15 00:19:47',
44
-				2 => 0,
45
-				3 => '2010-03-14 22:19:47',
46
-			],
47
-			2 => [
48
-				0 => 'dans 3 heures',
49
-				1 => '2010-03-15 01:20:03',
50
-				2 => 0,
51
-				3 => '2010-03-14 22:20:03',
52
-			],
53
-			3 => [
54
-				0 => 'dans 4 heures',
55
-				1 => '2010-03-15 02:20:18',
56
-				2 => 0,
57
-				3 => '2010-03-14 22:20:18',
58
-			],
59
-			4 => [
60
-				0 => 'dans 5 heures',
61
-				1 => '2010-03-15 03:20:32',
62
-				2 => 0,
63
-				3 => '2010-03-14 22:20:32',
64
-			],
65
-			5 => [
66
-				0 => 'dans 12 heures',
67
-				1 => '2010-03-15 10:21:08',
68
-				2 => 0,
69
-				3 => '2010-03-14 22:21:08',
70
-			],
71
-			6 => [
72
-				0 => 'dans 23 heures',
73
-				1 => '2010-03-15 21:21:25',
74
-				2 => 0,
75
-				3 => '2010-03-14 22:21:25',
76
-			],
77
-			7 => [
78
-				0 => 'dans 24 heures',
79
-				1 => '2010-03-15 22:21:35',
80
-				2 => 0,
81
-				3 => '2010-03-14 22:21:35',
82
-			],
83
-			8 => [
84
-				0 => 'demain',
85
-				1 => '2010-03-15 23:21:56',
86
-				2 => 0,
87
-				3 => '2010-03-14 22:21:56',
88
-			],
89
-			9 => [
90
-				0 => 'dans 2 jours',
91
-				1 => '2010-03-16 22:22:47',
92
-				2 => 0,
93
-				3 => '2010-03-14 22:22:47',
94
-			],
95
-			10 => [
96
-				0 => 'dans 3 jours',
97
-				1 => '2010-03-17 22:23:30',
98
-				2 => 0,
99
-				3 => '2010-03-14 22:23:30',
100
-			],
101
-			11 => [
102
-				0 => 'dans 6 jours',
103
-				1 => '2010-03-20 22:23:51',
104
-				2 => 0,
105
-				3 => '2010-03-14 22:23:51',
106
-			],
107
-			12 => [
108
-				0 => 'dans 7 jours',
109
-				1 => '2010-03-21 22:24:17',
110
-				2 => 0,
111
-				3 => '2010-03-14 22:24:17',
112
-			],
113
-			13 => [
114
-				0 => 'dans 1 semaine',
115
-				1 => '2010-03-22 22:24:31',
116
-				2 => 0,
117
-				3 => '2010-03-14 22:24:31',
118
-			],
119
-			14 => [
120
-				0 => 'dans 2 semaines',
121
-				1 => '2010-03-28 23:25:03',
122
-				2 => 0,
123
-				3 => '2010-03-14 22:25:03',
124
-			],
125
-			15 => [
126
-				0 => 'dans 3 semaines',
127
-				1 => '2010-04-04 23:25:14',
128
-				2 => 0,
129
-				3 => '2010-03-14 22:25:14',
130
-			],
131
-			16 => [
132
-				0 => 'dans 4 semaines',
133
-				1 => '2010-04-11 23:25:29',
134
-				2 => 0,
135
-				3 => '2010-03-14 22:25:29',
136
-			],
137
-			17 => [
138
-				0 => 'dans 4 semaines',
139
-				1 => '2010-04-13 23:26:31',
140
-				2 => 0,
141
-				3 => '2010-03-14 22:26:31',
142
-			],
143
-			18 => [
144
-				0 => 'dans 1 mois',
145
-				1 => '2010-04-14 23:26:49',
146
-				2 => 0,
147
-				3 => '2010-03-14 22:26:49',
148
-			],
149
-			19 => [
150
-				0 => 'dans 1 minute',
151
-				1 => '2010-03-14 22:30:48',
152
-				2 => 0,
153
-				3 => '2010-03-14 22:29:48',
154
-			],
155
-			20 => [
156
-				0 => 'dans 30 minutes',
157
-				1 => '2010-03-14 23:00:01',
158
-				2 => 0,
159
-				3 => '2010-03-14 22:30:01',
160
-			],
161
-			21 => [
162
-				0 => 'dans 59 minutes',
163
-				1 => '2010-03-14 23:29:10',
164
-				2 => 0,
165
-				3 => '2010-03-14 22:30:10',
166
-			],
167
-			22 => [
168
-				0 => 'dans 1 heure',
169
-				1 => '2010-03-14 23:30:51',
170
-				2 => 0,
171
-				3 => '2010-03-14 22:30:51',
172
-			],
173
-			23 => [
174
-				0 => 'dans 1 seconde',
175
-				1 => '2010-03-14 22:31:10',
176
-				2 => 0,
177
-				3 => '2010-03-14 22:31:09',
178
-			],
179
-			24 => [
180
-				0 => 'dans 1 minute',
181
-				1 => '2010-03-14 22:32:37',
182
-				2 => 0,
183
-				3 => '2010-03-14 22:31:37',
184
-			],
185
-			25 => [
186
-				0 => 'il y a 1 seconde',
187
-				1 => '2010-03-14 22:31:52',
188
-				2 => 0,
189
-				3 => '2010-03-14 22:31:53',
190
-			],
191
-			26 => [
192
-				0 => 'il y a 59 secondes',
193
-				1 => '2010-03-14 22:31:03',
194
-				2 => 0,
195
-				3 => '2010-03-14 22:32:02',
196
-			],
197
-			27 => [
198
-				0 => 'il y a 1 minute',
199
-				1 => '2010-03-14 22:31:12',
200
-				2 => 0,
201
-				3 => '2010-03-14 22:32:12',
202
-			],
203
-			28 => [
204
-				0 => 'il y a 59 minutes',
205
-				1 => '2010-03-14 21:33:30',
206
-				2 => 0,
207
-				3 => '2010-03-14 22:32:30',
208
-			],
209
-			29 => [
210
-				0 => 'il y a 1 heure',
211
-				1 => '2010-03-14 21:33:00',
212
-				2 => 0,
213
-				3 => '2010-03-14 22:33:00',
214
-			],
215
-			30 => [
216
-				0 => 'il y a 2 heures',
217
-				1 => '2010-03-14 20:33:32',
218
-				2 => 0,
219
-				3 => '2010-03-14 22:33:32',
220
-			],
221
-			31 => [
222
-				0 => 'il y a 23 heures',
223
-				1 => '2010-03-13 23:33:46',
224
-				2 => 0,
225
-				3 => '2010-03-14 22:33:46',
226
-			],
227
-			32 => [
228
-				0 => 'il y a 24 heures',
229
-				1 => '2010-03-13 22:33:57',
230
-				2 => 0,
231
-				3 => '2010-03-14 22:33:57',
232
-			],
233
-			33 => [
234
-				0 => 'hier',
235
-				1 => '2010-03-13 21:34:24',
236
-				2 => 0,
237
-				3 => '2010-03-14 22:34:24',
238
-			],
239
-			34 => [
240
-				0 => 'hier',
241
-				1 => '2010-03-12 23:35:16',
242
-				2 => 0,
243
-				3 => '2010-03-14 22:35:16',
244
-			],
245
-			35 => [
246
-				0 => 'il y a 2 jours',
247
-				1 => '2010-03-12 22:35:28',
248
-				2 => 0,
249
-				3 => '2010-03-14 22:35:28',
250
-			],
251
-			36 => [
252
-				0 => 'il y a 6 jours',
253
-				1 => '2010-03-08 22:35:57',
254
-				2 => 0,
255
-				3 => '2010-03-14 22:35:57',
256
-			],
257
-			37 => [
258
-				0 => 'il y a 7 jours',
259
-				1 => '2010-03-07 22:38:00',
260
-				2 => 0,
261
-				3 => '2010-03-14 22:38:00',
262
-			],
263
-			38 => [
264
-				0 => 'il y a 1 semaine',
265
-				1 => '2010-03-06 22:38:23',
266
-				2 => 0,
267
-				3 => '2010-03-14 22:38:23',
268
-			],
269
-			39 => [
270
-				0 => 'il y a 2 semaines',
271
-				1 => '2010-02-28 22:39:00',
272
-				2 => 0,
273
-				3 => '2010-03-14 22:39:00',
274
-			],
275
-			40 => [
276
-				0 => 'il y a 3 semaines',
277
-				1 => '2010-02-21 22:39:14',
278
-				2 => 0,
279
-				3 => '2010-03-14 22:39:14',
280
-			],
281
-			41 => [
282
-				0 => 'il y a 4 semaines',
283
-				1 => '2010-02-14 22:39:26',
284
-				2 => 0,
285
-				3 => '2010-03-14 22:39:26',
286
-			],
287
-			42 => [
288
-				0 => 'il y a 4 semaines',
289
-				1 => '2010-02-13 22:39:39',
290
-				2 => 0,
291
-				3 => '2010-03-14 22:39:39',
292
-			],
293
-			43 => [
294
-				0 => 'il y a 4 semaines',
295
-				1 => '2010-02-12 22:39:53',
296
-				2 => 0,
297
-				3 => '2010-03-14 22:39:53',
298
-			],
299
-			44 => [
300
-				0 => 'il y a 1 mois',
301
-				1 => '2010-02-11 22:40:03',
302
-				2 => 0,
303
-				3 => '2010-03-14 22:40:03',
304
-			],
305
-			45 => [
306
-				0 => 'il y a 2 mois',
307
-				1 => '2010-01-13 22:41:13',
308
-				2 => 0,
309
-				3 => '2010-03-14 22:41:13',
310
-			],
311
-		];
312
-	}
33
+    public static function providerFiltresDateRelative(): array {
34
+        return [
35
+            0 => [
36
+                0 => 'dans 1 heure',
37
+                1 => '2010-03-14 23:18:57',
38
+                2 => 0,
39
+                3 => '2010-03-14 22:18:57',
40
+            ],
41
+            1 => [
42
+                0 => 'dans 2 heures',
43
+                1 => '2010-03-15 00:19:47',
44
+                2 => 0,
45
+                3 => '2010-03-14 22:19:47',
46
+            ],
47
+            2 => [
48
+                0 => 'dans 3 heures',
49
+                1 => '2010-03-15 01:20:03',
50
+                2 => 0,
51
+                3 => '2010-03-14 22:20:03',
52
+            ],
53
+            3 => [
54
+                0 => 'dans 4 heures',
55
+                1 => '2010-03-15 02:20:18',
56
+                2 => 0,
57
+                3 => '2010-03-14 22:20:18',
58
+            ],
59
+            4 => [
60
+                0 => 'dans 5 heures',
61
+                1 => '2010-03-15 03:20:32',
62
+                2 => 0,
63
+                3 => '2010-03-14 22:20:32',
64
+            ],
65
+            5 => [
66
+                0 => 'dans 12 heures',
67
+                1 => '2010-03-15 10:21:08',
68
+                2 => 0,
69
+                3 => '2010-03-14 22:21:08',
70
+            ],
71
+            6 => [
72
+                0 => 'dans 23 heures',
73
+                1 => '2010-03-15 21:21:25',
74
+                2 => 0,
75
+                3 => '2010-03-14 22:21:25',
76
+            ],
77
+            7 => [
78
+                0 => 'dans 24 heures',
79
+                1 => '2010-03-15 22:21:35',
80
+                2 => 0,
81
+                3 => '2010-03-14 22:21:35',
82
+            ],
83
+            8 => [
84
+                0 => 'demain',
85
+                1 => '2010-03-15 23:21:56',
86
+                2 => 0,
87
+                3 => '2010-03-14 22:21:56',
88
+            ],
89
+            9 => [
90
+                0 => 'dans 2 jours',
91
+                1 => '2010-03-16 22:22:47',
92
+                2 => 0,
93
+                3 => '2010-03-14 22:22:47',
94
+            ],
95
+            10 => [
96
+                0 => 'dans 3 jours',
97
+                1 => '2010-03-17 22:23:30',
98
+                2 => 0,
99
+                3 => '2010-03-14 22:23:30',
100
+            ],
101
+            11 => [
102
+                0 => 'dans 6 jours',
103
+                1 => '2010-03-20 22:23:51',
104
+                2 => 0,
105
+                3 => '2010-03-14 22:23:51',
106
+            ],
107
+            12 => [
108
+                0 => 'dans 7 jours',
109
+                1 => '2010-03-21 22:24:17',
110
+                2 => 0,
111
+                3 => '2010-03-14 22:24:17',
112
+            ],
113
+            13 => [
114
+                0 => 'dans 1 semaine',
115
+                1 => '2010-03-22 22:24:31',
116
+                2 => 0,
117
+                3 => '2010-03-14 22:24:31',
118
+            ],
119
+            14 => [
120
+                0 => 'dans 2 semaines',
121
+                1 => '2010-03-28 23:25:03',
122
+                2 => 0,
123
+                3 => '2010-03-14 22:25:03',
124
+            ],
125
+            15 => [
126
+                0 => 'dans 3 semaines',
127
+                1 => '2010-04-04 23:25:14',
128
+                2 => 0,
129
+                3 => '2010-03-14 22:25:14',
130
+            ],
131
+            16 => [
132
+                0 => 'dans 4 semaines',
133
+                1 => '2010-04-11 23:25:29',
134
+                2 => 0,
135
+                3 => '2010-03-14 22:25:29',
136
+            ],
137
+            17 => [
138
+                0 => 'dans 4 semaines',
139
+                1 => '2010-04-13 23:26:31',
140
+                2 => 0,
141
+                3 => '2010-03-14 22:26:31',
142
+            ],
143
+            18 => [
144
+                0 => 'dans 1 mois',
145
+                1 => '2010-04-14 23:26:49',
146
+                2 => 0,
147
+                3 => '2010-03-14 22:26:49',
148
+            ],
149
+            19 => [
150
+                0 => 'dans 1 minute',
151
+                1 => '2010-03-14 22:30:48',
152
+                2 => 0,
153
+                3 => '2010-03-14 22:29:48',
154
+            ],
155
+            20 => [
156
+                0 => 'dans 30 minutes',
157
+                1 => '2010-03-14 23:00:01',
158
+                2 => 0,
159
+                3 => '2010-03-14 22:30:01',
160
+            ],
161
+            21 => [
162
+                0 => 'dans 59 minutes',
163
+                1 => '2010-03-14 23:29:10',
164
+                2 => 0,
165
+                3 => '2010-03-14 22:30:10',
166
+            ],
167
+            22 => [
168
+                0 => 'dans 1 heure',
169
+                1 => '2010-03-14 23:30:51',
170
+                2 => 0,
171
+                3 => '2010-03-14 22:30:51',
172
+            ],
173
+            23 => [
174
+                0 => 'dans 1 seconde',
175
+                1 => '2010-03-14 22:31:10',
176
+                2 => 0,
177
+                3 => '2010-03-14 22:31:09',
178
+            ],
179
+            24 => [
180
+                0 => 'dans 1 minute',
181
+                1 => '2010-03-14 22:32:37',
182
+                2 => 0,
183
+                3 => '2010-03-14 22:31:37',
184
+            ],
185
+            25 => [
186
+                0 => 'il y a 1 seconde',
187
+                1 => '2010-03-14 22:31:52',
188
+                2 => 0,
189
+                3 => '2010-03-14 22:31:53',
190
+            ],
191
+            26 => [
192
+                0 => 'il y a 59 secondes',
193
+                1 => '2010-03-14 22:31:03',
194
+                2 => 0,
195
+                3 => '2010-03-14 22:32:02',
196
+            ],
197
+            27 => [
198
+                0 => 'il y a 1 minute',
199
+                1 => '2010-03-14 22:31:12',
200
+                2 => 0,
201
+                3 => '2010-03-14 22:32:12',
202
+            ],
203
+            28 => [
204
+                0 => 'il y a 59 minutes',
205
+                1 => '2010-03-14 21:33:30',
206
+                2 => 0,
207
+                3 => '2010-03-14 22:32:30',
208
+            ],
209
+            29 => [
210
+                0 => 'il y a 1 heure',
211
+                1 => '2010-03-14 21:33:00',
212
+                2 => 0,
213
+                3 => '2010-03-14 22:33:00',
214
+            ],
215
+            30 => [
216
+                0 => 'il y a 2 heures',
217
+                1 => '2010-03-14 20:33:32',
218
+                2 => 0,
219
+                3 => '2010-03-14 22:33:32',
220
+            ],
221
+            31 => [
222
+                0 => 'il y a 23 heures',
223
+                1 => '2010-03-13 23:33:46',
224
+                2 => 0,
225
+                3 => '2010-03-14 22:33:46',
226
+            ],
227
+            32 => [
228
+                0 => 'il y a 24 heures',
229
+                1 => '2010-03-13 22:33:57',
230
+                2 => 0,
231
+                3 => '2010-03-14 22:33:57',
232
+            ],
233
+            33 => [
234
+                0 => 'hier',
235
+                1 => '2010-03-13 21:34:24',
236
+                2 => 0,
237
+                3 => '2010-03-14 22:34:24',
238
+            ],
239
+            34 => [
240
+                0 => 'hier',
241
+                1 => '2010-03-12 23:35:16',
242
+                2 => 0,
243
+                3 => '2010-03-14 22:35:16',
244
+            ],
245
+            35 => [
246
+                0 => 'il y a 2 jours',
247
+                1 => '2010-03-12 22:35:28',
248
+                2 => 0,
249
+                3 => '2010-03-14 22:35:28',
250
+            ],
251
+            36 => [
252
+                0 => 'il y a 6 jours',
253
+                1 => '2010-03-08 22:35:57',
254
+                2 => 0,
255
+                3 => '2010-03-14 22:35:57',
256
+            ],
257
+            37 => [
258
+                0 => 'il y a 7 jours',
259
+                1 => '2010-03-07 22:38:00',
260
+                2 => 0,
261
+                3 => '2010-03-14 22:38:00',
262
+            ],
263
+            38 => [
264
+                0 => 'il y a 1 semaine',
265
+                1 => '2010-03-06 22:38:23',
266
+                2 => 0,
267
+                3 => '2010-03-14 22:38:23',
268
+            ],
269
+            39 => [
270
+                0 => 'il y a 2 semaines',
271
+                1 => '2010-02-28 22:39:00',
272
+                2 => 0,
273
+                3 => '2010-03-14 22:39:00',
274
+            ],
275
+            40 => [
276
+                0 => 'il y a 3 semaines',
277
+                1 => '2010-02-21 22:39:14',
278
+                2 => 0,
279
+                3 => '2010-03-14 22:39:14',
280
+            ],
281
+            41 => [
282
+                0 => 'il y a 4 semaines',
283
+                1 => '2010-02-14 22:39:26',
284
+                2 => 0,
285
+                3 => '2010-03-14 22:39:26',
286
+            ],
287
+            42 => [
288
+                0 => 'il y a 4 semaines',
289
+                1 => '2010-02-13 22:39:39',
290
+                2 => 0,
291
+                3 => '2010-03-14 22:39:39',
292
+            ],
293
+            43 => [
294
+                0 => 'il y a 4 semaines',
295
+                1 => '2010-02-12 22:39:53',
296
+                2 => 0,
297
+                3 => '2010-03-14 22:39:53',
298
+            ],
299
+            44 => [
300
+                0 => 'il y a 1 mois',
301
+                1 => '2010-02-11 22:40:03',
302
+                2 => 0,
303
+                3 => '2010-03-14 22:40:03',
304
+            ],
305
+            45 => [
306
+                0 => 'il y a 2 mois',
307
+                1 => '2010-01-13 22:41:13',
308
+                2 => 0,
309
+                3 => '2010-03-14 22:41:13',
310
+            ],
311
+        ];
312
+    }
313 313
 }
Please login to merge, or discard this patch.