friendica/tests/src/Core/Lock/APCuCacheLockTest.php

24 lines
403 B
PHP
Raw Normal View History

2019-04-20 17:37:57 +02:00
<?php
namespace Friendica\Test\src\Core\Lock;
use Friendica\Core\Cache\APCuCache;
use Friendica\Core\Lock\CacheLock;
2019-04-20 17:37:57 +02:00
class APCuCacheLockTest extends LockTest
2019-04-20 17:37:57 +02:00
{
2019-04-20 18:11:24 +02:00
protected function setUp()
{
if (!APCuCache::isAvailable()) {
$this->markTestSkipped('APCu is not available');
}
parent::setUp();
}
2019-04-20 17:37:57 +02:00
protected function getInstance()
{
return new CacheLock(new APCuCache('localhost'));
2019-04-20 17:37:57 +02:00
}
}