Files
miniapi/tests/mini_payment_target_self_check.php
gaofeng 4150f64d3b 提交
2026-09-04 11:35:08 +08:00

12 lines
486 B
PHP

<?php
declare(strict_types=1);
require dirname(__DIR__) . '/app/miniapi/service/Payment/MiniPayService.php';
use app\miniapi\service\Payment\MiniPayService;
if (MiniPayService::targetMarkForCheck('bjglobal', 'singapore') !== 'bjglobalsingapore') throw new RuntimeException('target payment mark failed');
if (MiniPayService::targetMarkForCheck('bjglobal', 'bad-table') !== '') throw new RuntimeException('unsafe target table accepted');
echo "PASS mini_payment_target_self_check\n";