Skip to content

Commit 741a98b

Browse files
committed
Added additional test case
1 parent b88938c commit 741a98b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Arr/ArrTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function testHas($class)
3737
[
3838
'test6' => 'def'
3939
],
40-
'test7' => []
40+
'test7' => [],
41+
'test8' => null,
4142
],
4243
];
4344

@@ -56,7 +57,8 @@ public function testHas($class)
5657
$this->assertFalse($this->callMethod([$class, 'has'], $array, 'test.test2.test4'));
5758

5859
$this->assertFalse($this->callMethod([$class, 'has'], $array, 'test.test2.test3.foo'));
59-
$this->assertFalse($this->callMethod([$class, 'has'], $array, 'test.test7.bar'));
60+
$this->assertFalse($this->callMethod([$class, 'has'], $array, 'test.test7.foo'));
61+
$this->assertFalse($this->callMethod([$class, 'has'], $array, 'test.test8.foo'));
6062
$this->assertFalse($this->callMethod([$class, 'has'], $array, '1.2.3'));
6163
}
6264

0 commit comments

Comments
 (0)