|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
+use refill\hongxudagy\config;
|
|
|
|
|
|
define('APP_ID', 'test');
|
|
|
define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
|
|
@@ -43,4 +44,11 @@ class TestCardNo extends TestCase
|
|
|
[$validate,$card_type,$region_no] = mtopcard\valid_phone('1000113700023619278');
|
|
|
Log::record("validate={$validate} card_type={$card_type} region_no={$region_no}",Log::DEBUG);
|
|
|
}
|
|
|
+
|
|
|
+ public function testRound()
|
|
|
+ {
|
|
|
+ $price = round(30 * 0.992, 4);
|
|
|
+ $params['recharge_amount'] = number_format($price,4,'.','');
|
|
|
+
|
|
|
+ }
|
|
|
}
|