public function testSet() { $this->config->set('foo.bar2', 'test2'); $this->assertEquals($this->config->get('foo.bar2'), 'test2'); $this->config->offsetSet('foo.bar', 'test3'); $this->assertTrue($this->config->offsetExists('foo.bar')); $this->assertEquals($this->config->offsetGet('foo.bar'), 'test3'); $this->config->offsetUnset('foo.bar'); $this->assertEquals($this->config->offsetGet('foo.bar'), null); }