/** * Tests that custom config is being set and variables from it are reachable */ public function testSetFile() { $filePath = $this->createFile('config.inc.php', '<?php $this->testVar = "testValue";'); $oConfigFile = new oxConfigFile($filePath); $customConfigInc = $this->createFile('config.inc.php', '<?php $this->testVar2 = "testValue2";'); $oConfigFile->setFile($customConfigInc); $this->assertSame("testValue2", $oConfigFile->getVar("testVar2")); }
/** * Returns configuration key. This method is independent from oxConfig functionality. * * @return string */ protected function _getConfKey() { $sFileName = dirname(__FILE__) . "/oxconfk.php"; $sCfgFile = new oxConfigFile($sFileName); return $sCfgFile->getVar("sConfigKey"); }
/** * Returns configuration key. This method is independent from oxConfig functionality. * * @return string */ protected function getConfigurationKey() { $configKeyFileName = dirname(__FILE__) . "/oxconfk.php"; $configFile = new oxConfigFile($configKeyFileName); return $configFile->getVar("sConfigKey"); }