classSystemResponse
final class SystemResponse
Checks the system clause that ends every EARS statement.
The clause reads "The <system name> shall <system response>", or "Then the ..." after an If trigger, and contains a single shall.
Methods§
public function validate(string $clause, string|null $trigger): voidChecks the system clause.
Parameters
$clause | string | The last clause of the statement |
$trigger | string|null | The trigger keyword of the statement, if any |
Throws
InvalidInputException When the clause does not name a system and a response, or repeats shallTest cases 4
Called from 1
Calls 4
- function-call
preg_matchline 28 - function-call
trimline 28 - static-call Wording::hasContent() line 28
- new InvalidInputException line 29
Test cases 20§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 16
DefinitionReaderTestcallsLoaderTestcallsReferenceTestcallsMarkdownDocumentTestcallsApplicationTestcallsCommandHandlerTestcallsCommandLineTestcallsExecutorTestcallsFormatterTestcallsValidatorTestcallsItemTestcallsItemValidatorTestcallsAnalyzerTestcallsCoverageTestcallsSnapshotTestcallsVerifierTestcalls