Example #1
0
 public function testReadConfiguration()
 {
     $configuration = Configuration::createForTests(['hello' => 'world', 'nested' => ['value' => 'foobar', 'number' => 42, 'array' => [10, 20, 30], 'nested' => ['value' => 'bazboq']]]);
     $this->assertEquals('world', $configuration->get('hello'));
     $this->assertEquals('foobar', $configuration->get('nested/value'));
     $this->assertEquals(42, $configuration->get('nested/number'));
     $this->assertEquals([10, 20, 30], $configuration->get('nested/array'));
     $this->assertEquals('bazboq', $configuration->get('nested/nested/value'));
 }