public function testComment3() { $settings = array('TheOnlyGroup' => array()); $comments = array(); $configuration = new ezcConfiguration($settings, $comments); try { $dummy = $configuration->getComment('TheOnlyGroup', 'NonExistent'); $this->fail("Expected exception not thrown"); } catch (ezcConfigurationUnknownSettingException $e) { $this->assertEquals("The setting 'TheOnlyGroup', 'NonExistent' does not exist.", $e->getMessage()); } }