public function testCheckingKeyExistenceIsDelegatedToClient() { $this->mockClient->method('getResultCode')->willReturn(MemcachedKeyValueStore::MEMCACHED_RES_NOTFOUND); $this->assertFalse($this->store->has('foo')); }
public function testFalseIsReturnedIfKeyDoesNotExist() { $this->assertFalse($this->keyValueStore->has('foo')); }