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

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

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