10
10
/**
11
11
* Test.
12
12
*/
13
- class ConfigurationTest extends TestCase
13
+ final class ConfigurationTest extends TestCase
14
14
{
15
15
/**
16
16
* Test.
@@ -34,9 +34,9 @@ public function testGetString($data, string $key, $default, $expected): void
34
34
/**
35
35
* Provider.
36
36
*
37
- * @return array<array<mixed>> The test data
37
+ * @return array The test data
38
38
*/
39
- public function providerGetString (): array
39
+ public static function providerGetString (): array
40
40
{
41
41
return [
42
42
[['key ' => 'value ' ], 'key ' , null , 'value ' ],
@@ -63,16 +63,14 @@ public function testGetStringError($data, string $key): void
63
63
64
64
$ reader = new Configuration ($ data );
65
65
$ reader ->getString ($ key );
66
-
67
- $ this ->assertTrue (true );
68
66
}
69
67
70
68
/**
71
69
* Provider.
72
70
*
73
- * @return array<array<mixed>> The test data
71
+ * @return array The test data
74
72
*/
75
- public function providerGetStringError (): array
73
+ public static function providerGetStringError (): array
76
74
{
77
75
return [
78
76
[['key ' => 'value ' ], 'nope ' ],
@@ -103,9 +101,9 @@ public function testFindString($data, string $key, $default, $expected): void
103
101
/**
104
102
* Provider.
105
103
*
106
- * @return array<array<mixed>> The test data
104
+ * @return array The test data
107
105
*/
108
- public function providerFindString (): array
106
+ public static function providerFindString (): array
109
107
{
110
108
return [
111
109
[['key ' => 'value ' ], 'key ' , null , 'value ' ],
@@ -139,9 +137,9 @@ public function testGetInt($data, string $key, $default, $expected): void
139
137
/**
140
138
* Provider.
141
139
*
142
- * @return array<array<mixed>> The test data
140
+ * @return array The test data
143
141
*/
144
- public function providerGetInt (): array
142
+ public static function providerGetInt (): array
145
143
{
146
144
return [
147
145
[['key ' => 123456 ], 'key ' , null , 123456 ],
@@ -175,9 +173,9 @@ public function testGetIntError($data, string $key): void
175
173
/**
176
174
* Provider.
177
175
*
178
- * @return array<array<mixed>> The test data
176
+ * @return array The test data
179
177
*/
180
- public function providerGetIntError (): array
178
+ public static function providerGetIntError (): array
181
179
{
182
180
return [
183
181
[['key ' => 123456 ], 'nope ' ],
@@ -208,9 +206,9 @@ public function testFindInt($data, string $key, $default, $expected): void
208
206
/**
209
207
* Provider.
210
208
*
211
- * @return array<array<mixed>> The test data
209
+ * @return array The test data
212
210
*/
213
- public function providerFindInt (): array
211
+ public static function providerFindInt (): array
214
212
{
215
213
return [
216
214
[['key ' => 123456 ], 'key ' , null , 123456 ],
@@ -244,9 +242,9 @@ public function testGetBool($data, string $key, $default, $expected): void
244
242
/**
245
243
* Provider.
246
244
*
247
- * @return array<array<mixed>> The test data
245
+ * @return array The test data
248
246
*/
249
- public function providerGetBool (): array
247
+ public static function providerGetBool (): array
250
248
{
251
249
return [
252
250
[['key ' => true ], 'key ' , null , true ],
@@ -280,9 +278,9 @@ public function testGetBoolError($data, string $key): void
280
278
/**
281
279
* Provider.
282
280
*
283
- * @return array<array<mixed>> The test data
281
+ * @return array The test data
284
282
*/
285
- public function providerGetBoolError (): array
283
+ public static function providerGetBoolError (): array
286
284
{
287
285
return [
288
286
[['key ' => true ], 'nope ' ],
@@ -313,9 +311,9 @@ public function testFindBool($data, string $key, $default, $expected): void
313
311
/**
314
312
* Provider.
315
313
*
316
- * @return array<array<mixed>> The test data
314
+ * @return array The test data
317
315
*/
318
- public function providerFindBool (): array
316
+ public static function providerFindBool (): array
319
317
{
320
318
return [
321
319
[['key ' => true ], 'key ' , null , true ],
@@ -349,9 +347,9 @@ public function testGetFloat($data, string $key, $default, $expected): void
349
347
/**
350
348
* Provider.
351
349
*
352
- * @return array<array<mixed>> The test data
350
+ * @return array The test data
353
351
*/
354
- public function providerGetFloat (): array
352
+ public static function providerGetFloat (): array
355
353
{
356
354
return [
357
355
[['key ' => 123.456 ], 'key ' , null , 123.456 ],
@@ -385,9 +383,9 @@ public function testGetFloatError($data, string $key): void
385
383
/**
386
384
* Provider.
387
385
*
388
- * @return array<array<mixed>> The test data
386
+ * @return array The test data
389
387
*/
390
- public function providerGetFloatError (): array
388
+ public static function providerGetFloatError (): array
391
389
{
392
390
return [
393
391
[['key ' => 123.456 ], 'nope ' ],
@@ -418,9 +416,9 @@ public function testFindFloat($data, string $key, $default, $expected): void
418
416
/**
419
417
* Provider.
420
418
*
421
- * @return array<array<mixed>> The test data
419
+ * @return array The test data
422
420
*/
423
- public function providerFindFloat (): array
421
+ public static function providerFindFloat (): array
424
422
{
425
423
return [
426
424
[['key ' => 123.456 ], 'key ' , null , 123.456 ],
@@ -454,9 +452,9 @@ public function testGetArray($data, string $key, $default, $expected): void
454
452
/**
455
453
* Provider.
456
454
*
457
- * @return array<array<mixed>> The test data
455
+ * @return array The test data
458
456
*/
459
- public function providerGetArray (): array
457
+ public static function providerGetArray (): array
460
458
{
461
459
return [
462
460
[['key ' => ['key ' => 'value ' ]], 'key ' , null , ['key ' => 'value ' ]],
@@ -490,9 +488,9 @@ public function testGetArrayError($data, string $key): void
490
488
/**
491
489
* Provider.
492
490
*
493
- * @return array<array<mixed>> The test data
491
+ * @return array The test data
494
492
*/
495
- public function providerGetArrayError (): array
493
+ public static function providerGetArrayError (): array
496
494
{
497
495
return [
498
496
[['key ' => ['key ' => 'value ' ]], 'nope ' ],
@@ -523,9 +521,9 @@ public function testFindArray($data, string $key, $default, $expected): void
523
521
/**
524
522
* Provider.
525
523
*
526
- * @return array<array<mixed>> The test data
524
+ * @return array The test data
527
525
*/
528
- public function providerFindArray (): array
526
+ public static function providerFindArray (): array
529
527
{
530
528
return [
531
529
[['key ' => ['key ' => 'value ' ]], 'key ' , null , ['key ' => 'value ' ]],
@@ -559,9 +557,9 @@ public function testGetChronos($data, string $key, $default, $expected): void
559
557
/**
560
558
* Provider.
561
559
*
562
- * @return array<array<mixed>> The test data
560
+ * @return array The test data
563
561
*/
564
- public function providerGetChronos (): array
562
+ public static function providerGetChronos (): array
565
563
{
566
564
return [
567
565
[['key ' => Chronos::now ()], 'key ' , null , Chronos::now ()],
@@ -596,9 +594,9 @@ public function testGetChronosError($data, string $key): void
596
594
/**
597
595
* Provider.
598
596
*
599
- * @return array<array<mixed>> The test data
597
+ * @return array The test data
600
598
*/
601
- public function providerGetChronosError (): array
599
+ public static function providerGetChronosError (): array
602
600
{
603
601
return [
604
602
[['key ' => Chronos::now ()], 'nope ' ],
@@ -629,9 +627,9 @@ public function testFindChronos($data, string $key, $default, $expected): void
629
627
/**
630
628
* Provider.
631
629
*
632
- * @return array<array<mixed>> The test data
630
+ * @return array The test data
633
631
*/
634
- public function providerFindChronos (): array
632
+ public static function providerFindChronos (): array
635
633
{
636
634
return [
637
635
[['key ' => Chronos::now ()], 'key ' , null , Chronos::now ()],
@@ -647,9 +645,9 @@ public function providerFindChronos(): array
647
645
/**
648
646
* Provider.
649
647
*
650
- * @return array<array<mixed>> The test data
648
+ * @return array The test data
651
649
*/
652
- public function providerAll (): array
650
+ public static function providerAll (): array
653
651
{
654
652
return [
655
653
[['key ' => Chronos::now ()]],
0 commit comments