diff --git a/tests/SettingsTest.php b/tests/SettingsTest.php index 619d2f6..5147386 100644 --- a/tests/SettingsTest.php +++ b/tests/SettingsTest.php @@ -73,6 +73,18 @@ class SettingsTest extends TestCase $this->assertEquals('prod', $cfg->mode); } + /** + * @depends testLoad + */ + public function testNestedSettings(Settings $cfg) + { + $nested = $cfg->nested; + $this->assertIsObject($nested); + $this->assertIsIterable($nested); + $this->assertEquals(1, $nested->level); + $this->assertEquals('default', $nested->testFiles); + } + /** */ public function testSiteOverride() diff --git a/tests/cfg/config/default.conf.php b/tests/cfg/config/default.conf.php index ca5fae7..769fe7e 100644 --- a/tests/cfg/config/default.conf.php +++ b/tests/cfg/config/default.conf.php @@ -1,5 +1,10 @@ 'prod', 'testFiles' => 'default', - 'answer' => false + 'answer' => false, + 'nested' => + [ + 'level' => 1, + 'testFiles' => 'default', + ] ];