oConfig = new configuration(); $this->arrServerInfo = $this->oConfig->getServerInfo(); $this->arrPathInfo = $this->oConfig->getPathInfo($this->arrServerInfo['file_system_root']['value'], false); } /** * Cleaning up */ function tearDown() { $this->oConfig = null; } /** * Testing configFile */ function testConfigFile() { $key = 'configFile'; $fileValid = (file_exists($this->arrPathInfo[$key]['path'])); $this->assertTrue($fileValid, 'Config file : [' . $this->arrPathInfo[$key]['path'] . '] could not be found.'); } /** * Testing documentRoot */ function testDocumentRoot() { $key = 'documentRoot'; $this->assertEqual($this->arrPathInfo[$key]['class'], 'tick', $this->arrPathInfo[$key]['msg']); } /** * Testing logDirectory */ function testLogDirectory() { $key = 'logDirectory'; $this->assertEqual($this->arrPathInfo[$key]['class'], 'tick', $this->arrPathInfo[$key]['msg']); } /** * Testing tmpDirectory */ function testTmpDirectory() { $key = 'tmpDirectory'; $this->assertEqual($this->arrPathInfo[$key]['class'], 'tick', $this->arrPathInfo[$key]['msg']); } /** * Testing cacheDirectory */ function testCacheDirectory() { $key = 'cacheDirectory'; $this->assertEqual($this->arrPathInfo[$key]['class'], 'tick', $this->arrPathInfo[$key]['msg']); } /** * Testing uploadDirectory */ function testUploadDirectory() { $key = 'uploadDirectory'; $this->assertEqual($this->arrPathInfo[$key]['class'], 'tick', $this->arrPathInfo[$key]['msg']); } /** * Testing varDirectory */ function testvarDirectory() { $key = 'varDirectory'; $this->assertEqual($this->arrPathInfo[$key]['class'], 'tick', $this->arrPathInfo[$key]['msg']); } } ?>