Beispiel #1
0
 public function testCanSetArrayAccessCompoundKey()
 {
     $this->config->clear();
     $this->config['test.foo'] = 'Foo';
     $this->assertEquals('Foo', $this->config['test.foo'], 'Get via array access');
     $this->assertEquals('Foo', $this->config->get('test.foo'), 'Get via method With Compound Key');
     $this->assertEquals('Foo', $this->config->get('foo', null, 'test'), 'Get via method with index param');
     $this->assertEquals('Foo', $this->config->test('foo'), 'Get via magic method');
 }