Sokil\Mongo\StructureTest::testMergeModified_WithDots_NewKey PHP Method

testMergeModified_WithDots_NewKey() public method

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