Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
PHPUnit Test Add Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneTone committed Jun 10, 2021
1 parent e8683c1 commit 629fbf6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/HiNetHichannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/

use GoneTone\HiNetHichannel;
use GoneTone\Proxy;

use PHPUnit\Framework\TestCase;

/**
Expand All @@ -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();
}

Expand Down

0 comments on commit 629fbf6

Please sign in to comment.