Example #1
0
 public function testErrorMultipleExensions()
 {
     try {
         $config = new Zend_Config_Ini($this->_iniFileMultipleInheritanceConfig, 'three');
         zend::dump($config);
         $this->fail('An expected Zend_Config_Exception has not been raised');
     } catch (Zend_Config_Exception $expected) {
         $this->assertContains('may not extend multiple sections', $expected->getMessage());
     }
 }
Example #2
0
 public function testErrorMultipleExensions()
 {
     $this->setExpectedException('Zend\Config\Exception\RuntimeException', 'may not extend multiple sections');
     $config = new Ini($this->_iniFileMultipleInheritanceConfig, 'three');
     zend::dump($config);
 }