public function testPassingArrayOptionsToConstructorShouldLoadOptions() { $config = new IniConfig(__DIR__ . '/TestAsset/appconfig.ini', 'testing'); $application = new Application\Application('testing', $config->toArray()); $this->assertTrue($application->hasOption('foo')); }
public function testZF414() { $config = new Ini($this->_iniFileAllSectionsConfig, null); $this->assertEquals(null, $config->getSectionName()); $this->assertEquals(true, $config->areAllSectionsLoaded()); $config = new Ini($this->_iniFileAllSectionsConfig, 'all'); $this->assertEquals('all', $config->getSectionName()); $this->assertEquals(false, $config->areAllSectionsLoaded()); $config = new Ini($this->_iniFileAllSectionsConfig, array('staging','other_staging')); $this->assertEquals(array('staging','other_staging'), $config->getSectionName()); $this->assertEquals(false, $config->areAllSectionsLoaded()); }