public function getConfDir($relativePathToAppend = '') { return $this->realpath($this->makePathAbsolute($this->getSystemConfiguration()->getParam(DirectoryKeys::ETC_APPSERVER) . $this->makePathAbsolute($relativePathToAppend))); }
/** * Tests if getting just the configuration directory works * * @return null */ public function testGetConfDirNothingToAppend() { $dir = $this->service->getConfDir(); $this->assertEquals('/opt/appserver/etc/appserver', $dir); $this->assertNotEquals('/opt/appserver/etc/appserver/test/directory', $dir); }