- if (class_exists('Memcache')) {
- try {
- $this->cache = CacheDriverFactory::create('memcache');
- } catch (\Exception $exception) {
- throw new \Exception("Memcache - TestCase failed: " . $exception->getMessage(), $exception->getCode(), $exception);
- }
- return $this->cache;
- } else {
- $this->markTestSkipped('Memcache driver isn\'t available');
- return null;
- }