1
0
mirror of https://github.com/danog/file.git synced 2024-12-04 02:07:46 +01:00
file/test/KeyedFileMutexTest.php

28 lines
533 B
PHP
Raw Normal View History

<?php declare(strict_types=1);
namespace Amp\File\Test;
use Amp\File\KeyedFileMutex;
use Amp\Sync\AbstractKeyedMutexTest;
use Amp\Sync\KeyedMutex;
final class KeyedFileMutexTest extends AbstractKeyedMutexTest
{
protected function setUp(): void
{
parent::setUp();
Fixture::init();
}
protected function tearDown(): void
{
parent::tearDown();
Fixture::clear();
}
public function createMutex(): KeyedMutex
{
return new KeyedFileMutex(Fixture::path());
}
}