public function testMerge() { $d = new DotArray($this->arr); $override = array('three' => 'three', 'two' => array('two' => 'changed')); $expected = array('one' => 'one', 'two' => array('one' => 'two.one', 'two' => 'changed'), 'three' => 'three'); $d->merge($override); $this->assertSame($expected, $d->get()); }