26 lines
398 B
PHP
26 lines
398 B
PHP
<?php
|
|
|
|
namespace com\fwdekker\deathnotifier\validator;
|
|
|
|
|
|
/**
|
|
* Unit tests for `IsSetRule`.
|
|
*/
|
|
class IsSetRuleTest extends RuleTest
|
|
{
|
|
function get_rule(?string $override = null): Rule
|
|
{
|
|
return new IsSetRule($override);
|
|
}
|
|
|
|
function get_valid_input(): ?string
|
|
{
|
|
return "is-set";
|
|
}
|
|
|
|
function get_invalid_input(): ?string
|
|
{
|
|
return null;
|
|
}
|
|
}
|