示例#1
0
 /**
  * @return string
  */
 private function _getCacheKeyContent()
 {
     return __CLASS__ . '_content_filesystem:' . get_class($this->_filesystem->getAdapter()) . '_path:' . $this->getPath();
 }
示例#2
0
 public function testListByPrefixDoNotFollowSymlinks()
 {
     $filesystem = new CM_File_Filesystem($this->_adapter);
     $file = new CM_File('foo/bar/foo', $filesystem);
     $file->ensureParentDirectory();
     $file->write('hello');
     symlink($filesystem->getAdapter()->getPathPrefix() . '/foo', $filesystem->getAdapter()->getPathPrefix() . '/link');
     $this->assertSame(array('files' => array('foo/bar/foo'), 'dirs' => array('foo/bar', 'foo', 'link')), $this->_adapter->listByPrefix(''));
 }