shouldReceive('get') ->with('system', 'memcached_hosts') ->andReturn([0 => $host . ', ' . $port]); $logger = new NullLogger(); try { $this->cache = new MemcachedCache($host, $configMock, $logger); $this->lock = new CacheLock($this->cache); } catch (Exception $e) { static::markTestSkipped('Memcached is not available'); } parent::setUp(); } protected function getInstance(): CacheLock { return $this->lock; } protected function getCache(): ICanCacheInMemory { return $this->cache; } /** * @doesNotPerformAssertions */ public function testGetLocks() { static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround'); } /** * @doesNotPerformAssertions */ public function testGetLocksWithPrefix() { static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround'); } }