1
0
mirror of https://github.com/danog/file.git synced 2024-12-02 09:17:57 +01:00
file/test/FileMutexTest.php

16 lines
325 B
PHP
Raw Normal View History

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