|
@@ -93,6 +93,29 @@ class TestRefillThird extends TestCase
|
|
|
}
|
|
|
//docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefillThird::testPushPhone)( .*)?$/" --test-suffix TestRefillThird.php /var/www/html/test
|
|
|
|
|
|
+ public function testLittlePushPhones()
|
|
|
+ {
|
|
|
+ $time = time();
|
|
|
+ for ($i = 0; $i < 1000; $i++)
|
|
|
+ {
|
|
|
+ $params = [ 'mchid' => 1092,
|
|
|
+ 'buyer_id' => 60221,
|
|
|
+ 'amount' => 30,
|
|
|
+ 'mch_order' => "{$time}" . sprintf("%'010d",$i),
|
|
|
+ 'card_no' => '13911129867',
|
|
|
+ 'card_type' => 5,
|
|
|
+ 'regin_no' => 1,
|
|
|
+ 'cardno_state' => 1,
|
|
|
+ 'is_validate' => 1,
|
|
|
+ 'is_transfer' => 1
|
|
|
+ ];
|
|
|
+
|
|
|
+ $ret = refill\util::push_add($params);
|
|
|
+ Log::record("push message",Log::DEBUG);
|
|
|
+ }
|
|
|
+ //docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefillThird::testLittlePushPhones)( .*)?$/" --test-suffix TestRefillThird.php /var/www/html/test
|
|
|
+ }
|
|
|
+
|
|
|
public function testPushPhones()
|
|
|
{
|
|
|
$time = time();
|