| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- declare(strict_types=1);
- namespace SixShop\WechatPay;
- use PHPUnit\Framework\TestCase;
- use SixShop\WechatPay\Trait\ApiTrait;
- use SixShop\WechatPay\Trait\MiniAppTrait;
- use WeChatPay\BuilderChainable;
- class WechatPayBuilderTest extends TestCase
- {
- use MiniAppTrait;
- use ApiTrait;
- public function testCreate()
- {
- $result = \SixShop\WechatPay\Facade\WechatPayBuilder::getBuilderChainable();
- $this->assertInstanceOf(BuilderChainable::class, $result);
- }
- public function testOpSpecialOrder()
- {
- $this->expectException(\InvalidArgumentException::class);
- $this->expectExceptionCode(268546002);
- $result = $this->opSpecialOrder('errororderid', 2);
- }
- public function testDemo()
- {
- $result = $this->domesticRefunds('20250904123534022660', '20250904123534022660', 0.01);
- dump($result);
- }
- }
|