public function testResolveExtended()
{
$config1 = ['test' => 'service', 'one' => 'two', 'three' => 'four'];
$config2 = ['extends' => 'config1', 'two' => 'three', 'four' => 'five'];
$this->registry->setService('service', $this->service1->reveal());
$this->service1->configure(Argument::type(OptionsResolver::class))->will(function ($args) {
$args[0]->setDefaults(['test' => null, 'one' => null, 'two' => null, 'three' => null, 'four' => null]);
});
$this->registry->setConfig('config1', $config1);
$this->registry->setConfig('config2', $config2);
$result = $this->registry->getConfig('config2');
$this->assertEquals(['test' => 'service', 'one' => 'two', 'three' => 'four', 'two' => 'three', 'four' => 'five'], $result->getarraycopy());
}