public function testGetFloat($writtenValue, float
$expected): void
{ $this->systemConfigService->
set('foo.bar',
$writtenValue);
if (\
is_array($writtenValue)) { $this->
expectException(InvalidSettingValueException::
class);
$this->
expectExceptionMessage('Invalid value for \'foo.bar\'. Must be of type \'float\'. But is of type \'array\''
);
} $actual =
$this->systemConfigService->
getFloat('foo.bar'
);
static::
assertSame($expected,
$actual);
} /**
* @return array<mixed>
*/
public static function getBoolProvider(): array
{ return [ [true, true
],
[false, false
],
[