/** * 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")); }