Browse Source

copy&paste error for memcached unittest

pull/5331/head
Philipp Holzer 3 years ago
parent
commit
6ecaa5b15a
No known key found for this signature in database GPG Key ID: 58160D7D6AF942B6
  1. 6
      tests/src/Core/Lock/MemcachedCacheLockDriverTest.php

6
tests/src/Core/Lock/MemcachedCacheLockDriverTest.php

@ -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…
Cancel
Save