<?php
declare(strict_types=1);require __DIR__.'/RequestGate.php';$cases=['PILOT_LF_TEST'=>['method'=>'GET','path'=>'/store/market.Points/log','query'=>'userId=1','host'=>'store.ledger-read.invalid','auth'=>true]];$server=['HTTP_X_PILOT_SCENARIO'=>'PILOT_LF_TEST','REQUEST_METHOD'=>'GET','REQUEST_URI'=>'/store/market.Points/log?userId=1','QUERY_STRING'=>'userId=1','HTTP_HOST'=>'store.ledger-read.invalid','HTTP_ACCESS_TOKEN'=>'test-not-real'];requestGate($server,$cases);$n=1;foreach(['HTTP_X_PILOT_SCENARIO'=>'UNKNOWN','REQUEST_METHOD'=>'POST','REQUEST_URI'=>'/store/User/recharge','QUERY_STRING'=>'userId=2','HTTP_HOST'=>'terminal.ledger-read.invalid','HTTP_ACCESS_TOKEN'=>null] as $k=>$v){$s=$server;if($v===null)unset($s[$k]);else $s[$k]=$v;$reject=false;try{requestGate($s,$cases);}catch(RuntimeException $e){$reject=true;}if(!$reject)throw new RuntimeException('Failed request mutation '.$k);$n++;}echo json_encode(['request_guard_assertions'=>$n,'HTTP'=>0,'DML'=>0]),"\n";
