1
0
mirror of https://github.com/danog/file.git synced 2024-12-03 09:47:54 +01:00
file/test/FileCacheTest.php

28 lines
534 B
PHP
Raw Normal View History

2024-03-09 16:49:22 +01:00
<?php declare(strict_types=1);
namespace Amp\File\Test;
use Amp\Cache\Test\StringCacheTest;
use Amp\File\FileCache;
use Amp\Sync\LocalKeyedMutex;
class FileCacheTest extends StringCacheTest
{
protected function setUp(): void
{
parent::setUp();
Fixture::init();
}
protected function tearDown(): void
{
parent::tearDown();
Fixture::clear();
}
protected function createCache(): FileCache
{
return new FileCache(Fixture::path(), new LocalKeyedMutex());
}
}