13         $this->assertNull($state->getValueFor(
'invalid_key'));
    25         $this->assertEquals($value, $state->
getValueFor($key));
    34         $expected = json_encode([
'key' => 
'value'], JSON_THROW_ON_ERROR);
    35         $this->assertEquals($expected, $state->
serialize());
    45         $expected = json_encode([
'keep' => 
'this'], JSON_THROW_ON_ERROR);
    46         $this->assertEquals($expected, $state->
serialize());
 
withValueFor(string $key, string $value)
Set a value for a key of the state. 
 
getValueFor(string $key)
Get the value for the given key. 
 
testValue(State $state)
testGetNullValue 
 
testSerialize(State $state)
testValue 
 
Keeps the state of a view in a simple stringly type key-value store. 
 
serialize()
Get the key-value store as string. 
 
testRemoveValue(State $state)
testValue 
 
withoutKey(string $key)
Remove the key-value-pair.