copy&paste error for memcached unittest

This commit is contained in:
Philipp Holzer 2018-07-07 18:12:17 +02:00
parent f61aa2a3ee
commit 6ecaa5b15a
No known key found for this signature in database
GPG Key ID: 58160D7D6AF942B6
1 changed files with 3 additions and 3 deletions

View File

@ -20,19 +20,19 @@ class MemcachedCacheLockDriverTest extends LockTest
try { try {
$this->cache = CacheDriverFactory::create('memcached'); $this->cache = CacheDriverFactory::create('memcached');
} catch (\Exception $exception) { } catch (\Exception $exception) {
print "Redis - TestCase failed: " . $exception->getMessage(); print "Memcached - TestCase failed: " . $exception->getMessage();
throw new \Exception(); throw new \Exception();
} }
return new CacheLockDriver($this->cache); return new CacheLockDriver($this->cache);
} else { } else {
$this->markTestSkipped('Redis driver isn\'t available'); $this->markTestSkipped('Memcached driver isn\'t available');
return null; return null;
} }
} }
public function tearDown() public function tearDown()
{ {
if (class_exists('Redis')) { if (class_exists('Memcached')) {
$this->cache->clear(); $this->cache->clear();
} }
parent::tearDown(); parent::tearDown();