WuLiuClientTest.php 533 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\AliyunWuliu;
  4. use PHPUnit\Framework\TestCase;
  5. class WuLiuClientTest extends TestCase
  6. {
  7. private WuLiuClient $client;
  8. protected function setUp(): void
  9. {
  10. $this->client = app(WuLiuClient::class);
  11. }
  12. public function testKdi(): void
  13. {
  14. $result = $this->client->kdi('YT1164820926068');
  15. dump($result);
  16. }
  17. public function testGetExpressList(): void
  18. {
  19. $result = $this->client->getExpressList();
  20. dump($result);
  21. }
  22. }