19 declare(strict_types=1);
    32 require_once __DIR__ . 
'/../ContainerMock.php';
    40         $this->assertInstanceOf(SelectSetting::class, 
new SelectSetting($this->mock(KeyValueStore::class), $this->mock(Marshal::class)));
    45         $read_value = 
'a value';
    46         $write_value = 
'some value';
    50         $marshal = $this->mock(Marshal::class);
    51         $convert = $this->mockTree(Convert::class, [
    52             'fromString' => $this->mockMethod(Transformation::class, 
'transform', [$read_value], $value),
    53             'toString' => $this->mockMethod(Transformation::class, 
'transform', [$set_value], $write_value),
    56         $store = $this->mock(KeyValueStore::class);
    57         $store->expects(self::once())->method(
'value')->with(
'foo')->willReturn($read_value);
    58         $store->expects(self::once())->method(
'update')->with(
'foo', $write_value);
    62             $this->assertSame($marshal, $m);
    66         $this->assertSame($value, 
$setting->value());