コード例 #1
0
ファイル: PageCache.php プロジェクト: mmamedov/page-cache
 /**
  * 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;
 }
コード例 #2
0
 /**
  * @expectedException \Exception
  */
 public function testCreateSubDirsWithException()
 {
     //make cache directory non writable, this will prevent from them being created
     chmod($this->dir, '000');
     $this->hd->getHash();
 }