1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 20:04:51 +01:00
file/test/LockingFileMutexTest.php
2024-09-02 16:49:48 +02:00

16 lines
346 B
PHP

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