mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
copy&paste error for memcached unittest
This commit is contained in:
parent
f61aa2a3ee
commit
6ecaa5b15a
1 changed files with 3 additions and 3 deletions
|
@ -20,19 +20,19 @@ class MemcachedCacheLockDriverTest extends LockTest
|
|||
try {
|
||||
$this->cache = CacheDriverFactory::create('memcached');
|
||||
} catch (\Exception $exception) {
|
||||
print "Redis - TestCase failed: " . $exception->getMessage();
|
||||
print "Memcached - TestCase failed: " . $exception->getMessage();
|
||||
throw new \Exception();
|
||||
}
|
||||
return new CacheLockDriver($this->cache);
|
||||
} else {
|
||||
$this->markTestSkipped('Redis driver isn\'t available');
|
||||
$this->markTestSkipped('Memcached driver isn\'t available');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
if (class_exists('Redis')) {
|
||||
if (class_exists('Memcached')) {
|
||||
$this->cache->clear();
|
||||
}
|
||||
parent::tearDown();
|
||||
|
|
Loading…
Reference in a new issue