public function testFromGlobalConfig() { $userFile = PIWIK_INCLUDE_PATH . '/tests/resources/Config/config.ini.php'; $globalFile = PIWIK_INCLUDE_PATH . '/tests/resources/Config/global.ini.php'; $commonFile = PIWIK_INCLUDE_PATH . '/tests/resources/Config/common.config.ini.php'; $config = new Config(new GlobalSettingsProvider($globalFile, $userFile, $commonFile)); $configCategory = $config->getFromGlobalConfig('Category'); $this->assertEquals('value1', $configCategory['key1']); $this->assertEquals('value2', $configCategory['key2']); $this->assertEquals(array('key1' => 'value1', 'key2' => 'value2'), $configCategory); }