예제 #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'));
 }
예제 #2
0
파일: Config.php 프로젝트: bossrabbit/piwik
 /**
  * @api
  */
 public function getFromLocalConfig($name)
 {
     return $this->settings->getFrom($this->pathLocal, $name);
 }