stanley-king 3 år sedan
förälder
incheckning
c6bf65d988
1 ändrade filer med 23 tillägg och 0 borttagningar
  1. 23 0
      test/TestRefillThird.php

+ 23 - 0
test/TestRefillThird.php

@@ -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();