1
0
mirror of https://github.com/danog/file.git synced 2024-12-04 02:07:46 +01:00
file/test/Sync/AsyncFileMutexTest.php
2020-05-02 11:14:21 +02:00

16 lines
357 B
PHP

<?php declare(strict_types = 1);
namespace Amp\File\Test\Sync;
use Amp\File\Sync\AsyncFileMutex;
use Amp\Sync\Mutex;
use Amp\Sync\Test\AbstractMutexTest;
final class AsyncFileMutexTest extends AbstractMutexTest
{
public function createMutex(): Mutex
{
return new AsyncFileMutex(\tempnam(\sys_get_temp_dir(), 'mutex-') . '.lock');
}
}