3 lines
793 B
PHP
3 lines
793 B
PHP
<?php
|
|
require __DIR__.'/sgf-fiscal-rules-proof-bootstrap.php';$count=$host->table('fr_events')->count();$input=$ruleInput('prepare',0,$def(1),null,'QA-INPUT-NORMALIZATION');$input['revision']='0';$p=$rulePreview(13,$input);$ok($p['impact']['after']['revision']===1,'validated numeric revision normalized before compare');$selectRule(13);$reject(fn()=>$rules->receipt(13,str_repeat('-',36)),422,'malformed36-character key rejected before UUID query');$ok($host->table('fr_events')->count()===$count,'input checks do not persist rule events');file_put_contents($work.'/fiscal-rules-input.json',json_encode(['passed'=>true,'checks'=>$checks,'business_commands'=>0],JSON_PRETTY_PRINT));echo json_encode(['passed'=>true,'checks'=>count($checks),'proof'=>$work.'/fiscal-rules-input.json']).PHP_EOL;
|