Skip to content

Commit

Permalink
added test showing section override
Browse files Browse the repository at this point in the history
  • Loading branch information
intco committed Dec 20, 2018
1 parent a2b9931 commit c72f0f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/AbstractConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,4 +502,16 @@ public function testRemove()
$this->config->remove('application');
$this->assertNull($this->config['application']);
}

public function testDefaultOptionsSetOnInstantiationDoNotOverwriteSections()
{
$config = new SimpleConfig(
[
'application' => ['secret' => 'verysecret']
]
);
$this->assertEquals('configuration', $config->get('application.name'));
$this->assertEquals('verysecret', $config->get('application.secret'));
}
}

0 comments on commit c72f0f0

Please sign in to comment.