예제 #1
0
 public function testInvalidKeys()
 {
     $sections = array('leadingdot', 'onedot', 'twodots', 'threedots', 'trailingdot');
     foreach ($sections as $section) {
         try {
             $array = Zend_Config_Ini::load($this->_iniFileConfig, $section);
             var_dump($array);
             $this->fail('An expected Zend_Config_Exception has not been raised');
         } catch (Zend_Config_Exception $expected) {
             $this->assertContains('Invalid key', $expected->getMessage());
         }
     }
 }