From 629fbf616d448056f47b161e80e35547072f870e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=B5=E6=96=87=E7=9B=B8=20Zhang=20Wenxiang=20=28?= =?UTF-8?q?=E6=97=8B=E9=A2=A8=E4=B9=8B=E9=9F=B3=20GoneTone=29?= Date: Thu, 10 Jun 2021 15:40:43 +0800 Subject: [PATCH] PHPUnit Test Add Proxy --- tests/HiNetHichannelTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/HiNetHichannelTest.php b/tests/HiNetHichannelTest.php index f9c5957..24fd747 100644 --- a/tests/HiNetHichannelTest.php +++ b/tests/HiNetHichannelTest.php @@ -12,6 +12,8 @@ */ use GoneTone\HiNetHichannel; +use GoneTone\Proxy; + use PHPUnit\Framework\TestCase; /** @@ -25,7 +27,9 @@ class HiNetHichannelTest extends TestCase * @throws Exception */ protected function setUp(): void { - $this->_hichannel = new HiNetHichannel("KISS RADIO 大眾廣播電台"); + $proxy = new Proxy("gonetone.reh.tw", 3128, "http"); + $proxy->login("Test", "29022716"); + $this->_hichannel = new HiNetHichannel("KISS RADIO 大眾廣播電台", $proxy); $this->_hichannel->loadApi(); }