Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 /**
  * @api
  */
 public function getFromLocalConfig($name)
 {
     return $this->settings->getFrom($this->pathLocal, $name);
 }