* @author Arnold Daniels */ namespace Desarrolla2\Test\Cache; use Desarrolla2\Cache\File as FileCache; use Desarrolla2\Cache\File\TrieFilename; use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamDirectory; /** * FileTest with Trie structure */ class FileTrieTest extends AbstractCacheTest { /** * @var vfsStreamDirectory */ private $root; protected $skippedTests = [ 'testBasicUsageWithLongKey' => 'Only support keys up to 64 bytes' ]; public function createSimpleCache() { $this->root = vfsStream::setup('cache'); return (new FileCache(vfsStream::url('cache'))) ->withOption('filename', new TrieFilename('%s.php.cache',4)); } }