death-notifier/src/test/php/IsSetRuleTest.php

26 lines
371 B
PHP
Raw Normal View History

<?php
2022-11-27 13:54:13 +01:00
namespace php;
/**
* Unit tests for `IsSetRule`.
*/
final 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;
}
}