12 lines
486 B
PHP
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";
|