提交
This commit is contained in:
11
tests/mini_payment_target_self_check.php
Normal file
11
tests/mini_payment_target_self_check.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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";
|
||||
Reference in New Issue
Block a user