public function testArraySetting()
 {
     $settings = array('Types' => array('Bool' => true, 'Float' => 3.14, 'Int' => 42, 'String' => "Components", 'Array' => array(1 => 'Een', 2 => 'Twee')));
     $comments = array();
     $configuration = new ezcConfiguration($settings, $comments);
     $array = $configuration->getArraySetting('Types', 'Array');
     $this->assertEquals(array(1 => 'Een', 2 => 'Twee'), $array);
     try {
         $configuration->getArraySetting('Types', 'Bool');
         $configuration->getArraySetting('Types', 'Float');
         $configuration->getArraySetting('Types', 'Int');
         $configuration->getArraySetting('Types', 'String');
         $this->fail("Expected exception not thrown");
     } catch (ezcConfigurationSettingWrongTypeException $e) {
         $this->assertEquals("The expected type for the setting 'Types', 'Bool' is 'array'. The setting was of type 'boolean'.", $e->getMessage());
     }
 }