<?php
declare(strict_types=1);
namespace app\common\service {class BaseService {}}
namespace app\store\model {class SignAction {public static function detail($id,$with=[]){return new \SignEmptyRecord;}}class UploadFile {public function getAll($p=[]){throw new \RuntimeException('Empty file IDs must not query file rows');}}}
namespace app\terminal\model {class SignAction extends \app\store\model\SignAction {}class UploadFile extends \app\store\model\UploadFile {}}
namespace {class SignEmptyRecord {public function toArray():array{return ['id'=>7,'title'=>'自有骑行活动','cover_img_id'=>0,'rule_img_id'=>0,'addressList'=>[['id'=>11,'action_id'=>7,'address'=>'东门集合点','qrurl_id'=>0,'receive_url_id'=>0]]];}}
set_error_handler(static function($n,$s){throw new \ErrorException($s,0,$n);});require $argv[1];require $argv[2];$failed=[];$passed=0;foreach(['store','terminal'] as $end){$class='app\\'.$end.'\\service\\Sign';try{$got=(new $class)->detail(7);$want=(new SignEmptyRecord)->toArray();$want['cover_img']=[];$want['cover_img_url']='';$want['rule_img']=[];$want['rule_img_url']='';$want['addressList'][0]['qrurl']='';$want['addressList'][0]['receive_url']='';if($got!==$want)throw new \RuntimeException('Exact zero-file original data and array/string containers');$passed++;}catch(\Throwable $e){$failed[]=['end'=>$end,'error'=>$e->getMessage()];}}echo json_encode(['passed'=>$passed,'failed'=>$failed,'scope'=>'Pure zero-file service branch with in-memory record; original actual C HTTP failure separately retained']),"\n";exit($failed?1:0);}
