yiisoft / config

Configuration management
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
31 stars 11 forks source link

Throw duplicate error on use nested groups #153

Closed vjik closed 8 months ago

vjik commented 9 months ago

Test:

public function testNestedPath(): void
    {
        $config = new Config(
            new ConfigPaths(__DIR__ . '/TestAsset/configs/nested-path', 'config'),
            Options::DEFAULT_ENVIRONMENT,
        );

        $this->assertSame([
            'app' => 42,
            'test' => 19,
        ], $config->get('di-web'));
    }

Files for test: nested-path.zip