/** * testMergeTo * * @return void * * @covers Windwalker\Registry\Registry::mergeTo */ public function testMergeTo() { $registry = new Registry(array('sunflower' => 'shine', 'honor' => 'Osmanthus month')); $this->instance->mergeTo('pos1', $registry); $this->assertEquals($this->instance->get('pos1.sunflower'), 'shine'); $this->assertEquals($this->instance->get('pos1.honor'), 'Osmanthus month'); $this->instance->mergeTo('foo.bar', $registry); $this->assertEquals($this->instance->get('foo.bar.sunflower'), 'shine'); $this->assertEquals($this->instance->get('foo.bar.honor'), 'Osmanthus month'); }