|
@@ -6,25 +6,27 @@
|
|
|
* Date: 16/6/15
|
|
|
* Time: 下午3:12
|
|
|
*/
|
|
|
+declare(strict_types=0);
|
|
|
|
|
|
+define('APP_ID', 'test');
|
|
|
+define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
|
|
|
+require_once(BASE_ROOT_PATH . '/global.php');
|
|
|
+require_once(BASE_CORE_PATH . '/lrlz.php');
|
|
|
+require_once(BASE_ROOT_PATH . '/fooder.php');
|
|
|
|
|
|
-define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
|
|
|
-
|
|
|
-require_once (BASE_ROOT_PATH . '/fooder.php');
|
|
|
require_once (BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
|
require_once (BASE_ROOT_PATH . '/helper/pay/IPay.php');
|
|
|
require_once (BASE_ROOT_PATH . '/helper/pay/aopay.php');
|
|
|
require_once (BASE_ROOT_PATH . '/core/framework/function/http.php');
|
|
|
|
|
|
-class TestPay extends PHPUnit_Framework_TestCase
|
|
|
+use PHPUnit\Framework\TestCase;
|
|
|
+
|
|
|
+class TestAddData extends TestCase
|
|
|
{
|
|
|
- public static function setUpBeforeClass()
|
|
|
+ public static function setUpBeforeClass() : void
|
|
|
{
|
|
|
Base::run_util();
|
|
|
}
|
|
|
- public static function tearDownAfterClass()
|
|
|
- {
|
|
|
- }
|
|
|
|
|
|
public function testAdd()
|
|
|
{
|
|
@@ -76,6 +78,20 @@ class TestPay extends PHPUnit_Framework_TestCase
|
|
|
<trade_type><![CDATA[MWEB]]></trade_type>
|
|
|
<transaction_id><![CDATA[4200000279201902260421273158]]></transaction_id>
|
|
|
</xml>^M';
|
|
|
- $resp = http_post_data('https://passport.lrlz.com/mobile/web_wxnotify.php',$body);
|
|
|
+ $resp = http_post_data('https://www.xyzshops.cn/mobile/web_wxnotify.php',$body);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function testPostData()
|
|
|
+ {
|
|
|
+ $msg = "1柜门1箱门,取件码59368";
|
|
|
+ $postData['orderCode'] = '4312431431431265900431';
|
|
|
+ $postData['boxMsg'] = $msg;
|
|
|
+
|
|
|
+ $count = 1000;
|
|
|
+ do{
|
|
|
+ $resp = http_post_data('https://yxmall-adminportal.eavic.com/oms-web/box/deliver',json_encode($postData));
|
|
|
+ Log::record($resp,Log::DEBUG);
|
|
|
+ }
|
|
|
+ while($count--);
|
|
|
}
|
|
|
}
|