mirror of
https://github.com/danog/file.git
synced 2024-11-26 20:04:51 +01:00
16 lines
346 B
PHP
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');
|
|
}
|
|
}
|