mirror of
https://github.com/danog/file.git
synced 2024-12-12 09:19:48 +01:00
16 lines
325 B
PHP
16 lines
325 B
PHP
<?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');
|
|
}
|
|
}
|