X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FMemcacheCacheLockTest.php;h=98266852f9b808a3e5fd4b258adb69f5120a0403;hb=e6c054c27602a3acadac3c423273bdf748fcee27;hp=8008cb0eed605012a63cbb7c21b8790d4049a27d;hpb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;p=friendica.git diff --git a/tests/src/Core/Lock/MemcacheCacheLockTest.php b/tests/src/Core/Lock/MemcacheCacheLockTest.php index 8008cb0eed..98266852f9 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockTest.php @@ -1,6 +1,6 @@ shouldReceive('get') @@ -44,15 +47,15 @@ class MemcacheCacheLockTest extends LockTest $configMock ->shouldReceive('get') ->with('system', 'memcache_port') - ->andReturn(11211); + ->andReturn($port); $lock = null; try { $cache = new MemcacheCache($host, $configMock); $lock = new CacheLock($cache); - } catch (\Exception $e) { - $this->markTestSkipped('Memcache is not available'); + } catch (Exception $e) { + static::markTestSkipped('Memcache is not available'); } return $lock; @@ -60,17 +63,19 @@ class MemcacheCacheLockTest extends LockTest /** * @small + * @doesNotPerformAssertions */ public function testGetLocks() { - $this->markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround'); + static::markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround'); } /** * @small + * @doesNotPerformAssertions */ public function testGetLocksWithPrefix() { - $this->markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround'); + static::markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround'); } }