class SystemCheckTest extends TestCase
{ public function testGetters(): void
{ $check =
new SystemCheck('name', RequirementCheck::STATUS_SUCCESS, 'requiredValue', 'installedValue'
);
static::
assertEquals('name',
$check->
getName());
static::
assertEquals('requiredValue',
$check->
getRequiredValue());
static::
assertEquals('installedValue',
$check->
getInstalledValue());
static::
assertEquals(RequirementCheck::STATUS_SUCCESS,
$check->
getStatus());
} public function testEmptyNameThrowsException(): void
{ $this->
expectException(\RuntimeException::
class);
$this->
expectExceptionMessage('Empty name for RequirementCheck provided.'
);
new SystemCheck('', RequirementCheck::STATUS_SUCCESS, 'installedValue', 'status'
);
} public function testWrongStatusThrowsException(): void
{