Sokil\Mongo\StructureTest::testMergeUnmodified_WithDots_NewKey PHP Метод

testMergeUnmodified_WithDots_NewKey() публичный Метод

    public function testMergeUnmodified_WithDots_NewKey()
    {
        $structure = new Structure();
        $structure->mergeUnmodified(array('param1' => array('sub1' => 'value1')));
        $structure->mergeUnmodified(array('param2' => array('sub2' => 'value2')));
        $this->assertEquals(array('param1' => array('sub1' => 'value1'), 'param2' => array('sub2' => 'value2')), $structure->toArray());
    }