mirror of
https://github.com/friendica/friendica
synced 2024-06-21 15:24:42 +02:00
25 lines
411 B
PHP
25 lines
411 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
|
|
use Friendica\Core\Cache\APCuCache;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
class APCuCacheLockDriverTest extends LockTest
|
|
{
|
|
protected function setUp()
|
|
{
|
|
if (!APCuCache::isAvailable()) {
|
|
$this->markTestSkipped('APCu is not available');
|
|
}
|
|
|
|
parent::setUp();
|
|
}
|
|
|
|
protected function getInstance()
|
|
{
|
|
return new CacheLockDriver(new APCuCache());
|
|
}
|
|
}
|