/** * Get full path for current page's filename. At this point file itself might or might not have been created. * * Filename is created the same way as getFile() * * @return array array(filename, directory) */ public function getFilePath() { $fname = $this->getFile(); $subdir = HashDirectory::getLocation($fname); return $this->cache_path . $subdir . $fname; }
/** * @expectedException \Exception */ public function testCreateSubDirsWithException() { //make cache directory non writable, this will prevent from them being created chmod($this->dir, '000'); $this->hd->getHash(); }