/** * Test for OxConfigFile::getVars() method */ public function testGetVars() { $filePath = $this->createFile('config.inc.php', '<?php $this->testVar = "testValue"; $this->testVar2 = "testValue2";'); $oConfigFile = new oxConfigFile($filePath); $aVars = $oConfigFile->getVars(); $expectedArray = array('testVar' => 'testValue', 'testVar2' => 'testValue2'); $this->assertSame($expectedArray, $aVars); }