public function test_getFrom_CorrectlyReturnsUnencodedValue() { $userSettingsPath = __DIR__ . '/test_files/special_values.ini.php'; $fileChain = new IniFileChain(array(), $userSettingsPath); $this->assertEquals(array('value1' => 'a"bc', 'value2' => array('<script>', '${@piwik(crash))}')), $fileChain->getFrom($userSettingsPath, 'Section')); }
/** * @api */ public function getFromLocalConfig($name) { return $this->settings->getFrom($this->pathLocal, $name); }