public function testGettingValueIsDelegatedToClient() { $key = 'key'; $value = 'value'; $this->mockClient->method('get')->with($key)->willReturn($value); $this->assertEquals($value, $this->store->get($key)); }
public function testExceptionIsThrownIfValueIsNotSet() { $this->expectException(KeyNotFoundException::class); $this->assertFalse($this->keyValueStore->get('foo')); }