Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e8be8f1

Browse files
committedMay 22, 2025·
Feat: Adding New Tests
1 parent 2fa3b98 commit e8be8f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎tests/Support/SupportArrTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,11 @@ public function testHasAllMethod()
707707
$array = ['name' => 'Taylor', 'age' => '', 'city' => null];
708708
$this->assertTrue(Arr::hasAll($array, 'name'));
709709
$this->assertTrue(Arr::hasAll($array, 'age'));
710+
$this->assertFalse(Arr::hasAll($array, ['age', 'car']));
710711
$this->assertTrue(Arr::hasAll($array, 'city'));
712+
$this->assertFalse(Arr::hasAll($array, ['city', 'some']));
711713
$this->assertTrue(Arr::hasAll($array, ['name', 'age', 'city']));
714+
$this->assertFalse(Arr::hasAll($array, ['name', 'age', 'city', 'country']));
712715

713716
$array = ['user' => ['name' => 'Taylor']];
714717
$this->assertTrue(Arr::hasAll($array, 'user.name'));

0 commit comments

Comments
 (0)
Please sign in to comment.