mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
This commit is contained in:

committed by
GitHub

parent
eb7b23d117
commit
f2d32fab77
@ -493,6 +493,17 @@ class ArrayHelperTest extends TestCase
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
public function testMergeWithNumericKeys()
|
||||
{
|
||||
$a = [10 => [1]];
|
||||
$b = [10 => [2]];
|
||||
|
||||
$result = ArrayHelper::merge($a, $b);
|
||||
|
||||
$expected = [10 => [1], 11 => [2]];
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
public function testMergeWithUnset()
|
||||
{
|
||||
$a = [
|
||||
|
Reference in New Issue
Block a user