22
33namespace Selective \Config \Test ;
44
5+ use Cake \Chronos \Chronos ;
56use InvalidArgumentException ;
67use PHPUnit \Framework \TestCase ;
7- use Cake \Chronos \Chronos ;
88use Selective \Config \Configuration ;
99
1010/**
@@ -24,11 +24,11 @@ class ConfigurationTest extends TestCase
2424 *
2525 * @return void
2626 */
27- public function testGetString ($ data , string $ key , $ default , $ expected )
27+ public function testGetString ($ data , string $ key , $ default , $ expected ): void
2828 {
2929 $ reader = new Configuration ($ data );
30- static :: assertSame ($ expected , $ reader ->findString ($ key , $ default ));
31- static :: assertSame ($ expected , $ reader ->getString ($ key , $ default ));
30+ $ this -> assertSame ($ expected , $ reader ->findString ($ key , $ default ));
31+ $ this -> assertSame ($ expected , $ reader ->getString ($ key , $ default ));
3232 }
3333
3434 /**
@@ -57,14 +57,14 @@ public function providerGetString(): array
5757 *
5858 * @return void
5959 */
60- public function testGetStringError ($ data , string $ key )
60+ public function testGetStringError ($ data , string $ key ): void
6161 {
6262 $ this ->expectException (InvalidArgumentException::class);
6363
6464 $ reader = new Configuration ($ data );
6565 $ reader ->getString ($ key );
6666
67- static :: assertTrue (true );
67+ $ this -> assertTrue (true );
6868 }
6969
7070 /**
@@ -94,10 +94,10 @@ public function providerGetStringError(): array
9494 *
9595 * @return void
9696 */
97- public function testFindString ($ data , string $ key , $ default , $ expected )
97+ public function testFindString ($ data , string $ key , $ default , $ expected ): void
9898 {
9999 $ reader = new Configuration ($ data );
100- static :: assertSame ($ expected , $ reader ->findString ($ key , $ default ));
100+ $ this -> assertSame ($ expected , $ reader ->findString ($ key , $ default ));
101101 }
102102
103103 /**
@@ -129,11 +129,11 @@ public function providerFindString(): array
129129 *
130130 * @return void
131131 */
132- public function testGetInt ($ data , string $ key , $ default , $ expected )
132+ public function testGetInt ($ data , string $ key , $ default , $ expected ): void
133133 {
134134 $ reader = new Configuration ($ data );
135- static :: assertSame ($ expected , $ reader ->findInt ($ key , $ default ));
136- static :: assertSame ($ expected , $ reader ->getInt ($ key , $ default ));
135+ $ this -> assertSame ($ expected , $ reader ->findInt ($ key , $ default ));
136+ $ this -> assertSame ($ expected , $ reader ->getInt ($ key , $ default ));
137137 }
138138
139139 /**
@@ -162,14 +162,14 @@ public function providerGetInt(): array
162162 *
163163 * @return void
164164 */
165- public function testGetIntError ($ data , string $ key )
165+ public function testGetIntError ($ data , string $ key ): void
166166 {
167167 $ this ->expectException (InvalidArgumentException::class);
168168
169169 $ reader = new Configuration ($ data );
170170 $ reader ->getInt ($ key );
171171
172- static :: assertTrue (true );
172+ $ this -> assertTrue (true );
173173 }
174174
175175 /**
@@ -199,10 +199,10 @@ public function providerGetIntError(): array
199199 *
200200 * @return void
201201 */
202- public function testFindInt ($ data , string $ key , $ default , $ expected )
202+ public function testFindInt ($ data , string $ key , $ default , $ expected ): void
203203 {
204204 $ reader = new Configuration ($ data );
205- static :: assertSame ($ expected , $ reader ->findInt ($ key , $ default ));
205+ $ this -> assertSame ($ expected , $ reader ->findInt ($ key , $ default ));
206206 }
207207
208208 /**
@@ -234,11 +234,11 @@ public function providerFindInt(): array
234234 *
235235 * @return void
236236 */
237- public function testGetBool ($ data , string $ key , $ default , $ expected )
237+ public function testGetBool ($ data , string $ key , $ default , $ expected ): void
238238 {
239239 $ reader = new Configuration ($ data );
240- static :: assertSame ($ expected , $ reader ->findBool ($ key , $ default ));
241- static :: assertSame ($ expected , $ reader ->getBool ($ key , $ default ));
240+ $ this -> assertSame ($ expected , $ reader ->findBool ($ key , $ default ));
241+ $ this -> assertSame ($ expected , $ reader ->getBool ($ key , $ default ));
242242 }
243243
244244 /**
@@ -267,14 +267,14 @@ public function providerGetBool(): array
267267 *
268268 * @return void
269269 */
270- public function testGetBoolError ($ data , string $ key )
270+ public function testGetBoolError ($ data , string $ key ): void
271271 {
272272 $ this ->expectException (InvalidArgumentException::class);
273273
274274 $ reader = new Configuration ($ data );
275275 $ reader ->getBool ($ key );
276276
277- static :: assertTrue (true );
277+ $ this -> assertTrue (true );
278278 }
279279
280280 /**
@@ -304,10 +304,10 @@ public function providerGetBoolError(): array
304304 *
305305 * @return void
306306 */
307- public function testFindBool ($ data , string $ key , $ default , $ expected )
307+ public function testFindBool ($ data , string $ key , $ default , $ expected ): void
308308 {
309309 $ reader = new Configuration ($ data );
310- static :: assertSame ($ expected , $ reader ->findBool ($ key , $ default ));
310+ $ this -> assertSame ($ expected , $ reader ->findBool ($ key , $ default ));
311311 }
312312
313313 /**
@@ -339,11 +339,11 @@ public function providerFindBool(): array
339339 *
340340 * @return void
341341 */
342- public function testGetFloat ($ data , string $ key , $ default , $ expected )
342+ public function testGetFloat ($ data , string $ key , $ default , $ expected ): void
343343 {
344344 $ reader = new Configuration ($ data );
345- static :: assertSame ($ expected , $ reader ->findFloat ($ key , $ default ));
346- static :: assertSame ($ expected , $ reader ->getFloat ($ key , $ default ));
345+ $ this -> assertSame ($ expected , $ reader ->findFloat ($ key , $ default ));
346+ $ this -> assertSame ($ expected , $ reader ->getFloat ($ key , $ default ));
347347 }
348348
349349 /**
@@ -372,14 +372,14 @@ public function providerGetFloat(): array
372372 *
373373 * @return void
374374 */
375- public function testGetFloatError ($ data , string $ key )
375+ public function testGetFloatError ($ data , string $ key ): void
376376 {
377377 $ this ->expectException (InvalidArgumentException::class);
378378
379379 $ reader = new Configuration ($ data );
380380 $ reader ->getFloat ($ key );
381381
382- static :: assertTrue (true );
382+ $ this -> assertTrue (true );
383383 }
384384
385385 /**
@@ -409,10 +409,10 @@ public function providerGetFloatError(): array
409409 *
410410 * @return void
411411 */
412- public function testFindFloat ($ data , string $ key , $ default , $ expected )
412+ public function testFindFloat ($ data , string $ key , $ default , $ expected ): void
413413 {
414414 $ reader = new Configuration ($ data );
415- static :: assertSame ($ expected , $ reader ->findFloat ($ key , $ default ));
415+ $ this -> assertSame ($ expected , $ reader ->findFloat ($ key , $ default ));
416416 }
417417
418418 /**
@@ -444,11 +444,11 @@ public function providerFindFloat(): array
444444 *
445445 * @return void
446446 */
447- public function testGetArray ($ data , string $ key , $ default , $ expected )
447+ public function testGetArray ($ data , string $ key , $ default , $ expected ): void
448448 {
449449 $ reader = new Configuration ($ data );
450- static :: assertSame ($ expected , $ reader ->findArray ($ key , $ default ));
451- static :: assertSame ($ expected , $ reader ->getArray ($ key , $ default ));
450+ $ this -> assertSame ($ expected , $ reader ->findArray ($ key , $ default ));
451+ $ this -> assertSame ($ expected , $ reader ->getArray ($ key , $ default ));
452452 }
453453
454454 /**
@@ -477,14 +477,14 @@ public function providerGetArray(): array
477477 *
478478 * @return void
479479 */
480- public function testGetArrayError ($ data , string $ key )
480+ public function testGetArrayError ($ data , string $ key ): void
481481 {
482482 $ this ->expectException (InvalidArgumentException::class);
483483
484484 $ reader = new Configuration ($ data );
485485 $ reader ->getArray ($ key );
486486
487- static :: assertTrue (true );
487+ $ this -> assertTrue (true );
488488 }
489489
490490 /**
@@ -514,10 +514,10 @@ public function providerGetArrayError(): array
514514 *
515515 * @return void
516516 */
517- public function testFindArray ($ data , string $ key , $ default , $ expected )
517+ public function testFindArray ($ data , string $ key , $ default , $ expected ): void
518518 {
519519 $ reader = new Configuration ($ data );
520- static :: assertSame ($ expected , $ reader ->findArray ($ key , $ default ));
520+ $ this -> assertSame ($ expected , $ reader ->findArray ($ key , $ default ));
521521 }
522522
523523 /**
@@ -549,11 +549,11 @@ public function providerFindArray(): array
549549 *
550550 * @return void
551551 */
552- public function testGetChronos ($ data , string $ key , $ default , $ expected )
552+ public function testGetChronos ($ data , string $ key , $ default , $ expected ): void
553553 {
554554 $ reader = new Configuration ($ data );
555- static :: assertSame ((string )$ expected , (string )$ reader ->findChronos ($ key , $ default ));
556- static :: assertSame ((string )$ expected , (string )$ reader ->getChronos ($ key , $ default ));
555+ $ this -> assertSame ((string )$ expected , (string )$ reader ->findChronos ($ key , $ default ));
556+ $ this -> assertSame ((string )$ expected , (string )$ reader ->getChronos ($ key , $ default ));
557557 }
558558
559559 /**
@@ -583,14 +583,14 @@ public function providerGetChronos(): array
583583 *
584584 * @return void
585585 */
586- public function testGetChronosError ($ data , string $ key )
586+ public function testGetChronosError ($ data , string $ key ): void
587587 {
588588 $ this ->expectException (InvalidArgumentException::class);
589589
590590 $ reader = new Configuration ($ data );
591591 $ reader ->getChronos ($ key );
592592
593- static :: assertTrue (true );
593+ $ this -> assertTrue (true );
594594 }
595595
596596 /**
@@ -620,10 +620,10 @@ public function providerGetChronosError(): array
620620 *
621621 * @return void
622622 */
623- public function testFindChronos ($ data , string $ key , $ default , $ expected )
623+ public function testFindChronos ($ data , string $ key , $ default , $ expected ): void
624624 {
625625 $ reader = new Configuration ($ data );
626- static :: assertSame ((string )$ expected , (string )$ reader ->findChronos ($ key , $ default ));
626+ $ this -> assertSame ((string )$ expected , (string )$ reader ->findChronos ($ key , $ default ));
627627 }
628628
629629 /**
@@ -645,7 +645,7 @@ public function providerFindChronos(): array
645645 }
646646
647647 /**
648- * Provider
648+ * Provider.
649649 *
650650 * @return array[] The test data
651651 */
@@ -676,6 +676,6 @@ public function testAll($data): void
676676 {
677677 $ reader = new Configuration ($ data );
678678
679- static :: assertSame ($ data , $ reader ->all ());
679+ $ this -> assertSame ($ data , $ reader ->all ());
680680 }
681681}
0 commit comments