public function testMerge() { $c = new TestConfiguration(['db' => ['user' => 'app', 'passwd' => 'test']]); $c->mergeWith(['db' => ['passwd' => '123', 'host' => 'local']]); $this->assertEquals('app', $c->get('db.user')); $this->assertEquals('123', $c->get('db.passwd')); $this->assertEquals('local', $c->get('db.host')); }