mirror of
https://github.com/friendica/friendica
synced 2024-06-13 21:26:25 +02:00
- fixed test for semaphore - fixed some issues - changed namespace in Tests back to "src/" - changed namings
27 lines
453 B
PHP
27 lines
453 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
|
|
use Friendica\Core\Cache\ArrayCache;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
class CacheLockDriverTest extends LockTest
|
|
{
|
|
/**
|
|
* @var \Friendica\Core\Cache\IMemoryCacheDriver
|
|
*/
|
|
private $cache;
|
|
|
|
protected function getInstance()
|
|
{
|
|
$this->cache = new ArrayCache();
|
|
return new CacheLockDriver($this->cache);
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->cache->clear();
|
|
parent::tearDown();
|
|
}
|
|
} |