public function testGettingMultipleKeysIsDelegatedToClient() { $items = ['key1' => 'foo', 'key2' => 'bar']; $keys = array_keys($items); $this->mockClient->expects($this->once())->method('getMulti')->with($keys)->willReturn($items); $this->assertSame($items, $this->store->multiGet(...$keys)); }
public function testExceptionIsThrownIfValueIsNotSet() { $this->expectException(KeyNotFoundException::class); $this->assertFalse($this->keyValueStore->get('foo')); }