@@ -32,7 +32,7 @@ final class ArrayHelperDotHasTest extends CIUnitTestCase
3232 ],
3333 ];
3434
35- public function testDotKeyExists (): void
35+ public function testDotHas (): void
3636 {
3737 $ this ->assertFalse (ArrayHelper::dotHas ('' , $ this ->array ));
3838 $ this ->assertTrue (ArrayHelper::dotHas ('contacts ' , $ this ->array ));
@@ -43,23 +43,23 @@ public function testDotKeyExists(): void
4343 $ this ->assertFalse (ArrayHelper::dotHas ('contacts.friends.1.name ' , $ this ->array ));
4444 }
4545
46- public function testDotKeyExistsWithEndingWildCard (): void
46+ public function testDotHasWithEndingWildCard (): void
4747 {
4848 $ this ->expectException (InvalidArgumentException::class);
4949 $ this ->expectExceptionMessage ('You must set key right after "*". Invalid index: "contacts.*" ' );
5050
5151 $ this ->assertTrue (ArrayHelper::dotHas ('contacts.* ' , $ this ->array ));
5252 }
5353
54- public function testDotKeyExistsWithDoubleWildCard (): void
54+ public function testDotHasWithDoubleWildCard (): void
5555 {
5656 $ this ->expectException (InvalidArgumentException::class);
5757 $ this ->expectExceptionMessage ('You must set key right after "*". Invalid index: "contacts.*.*.age" ' );
5858
5959 $ this ->assertTrue (ArrayHelper::dotHas ('contacts.*.*.age ' , $ this ->array ));
6060 }
6161
62- public function testDotKeyExistsWithWildCard (): void
62+ public function testDotHasWithWildCard (): void
6363 {
6464 $ this ->assertTrue (ArrayHelper::dotHas ('*.friends ' , $ this ->array ));
6565 $ this ->assertTrue (ArrayHelper::dotHas ('contacts.friends.*.age ' , $ this ->array ));
0 commit comments