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

Commit

Permalink
Update Test
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneTone committed Jun 16, 2021
1 parent 1a109af commit 4e042b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.2', '7.3', '7.4', '8.0' ]

env:
PROXY_TEST_USERNAME: ${{ secrets.PROXY_TEST_USERNAME }}
PROXY_TEST_PASSWORD: ${{ secrets.PROXY_TEST_PASSWORD }}

name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion tests/HiNetHichannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HiNetHichannelTest extends TestCase
*/
protected function setUp(): void {
$proxy = new Proxy("gonetone.reh.tw", 3128, "http");
$proxy->login("Test", "29022716");
$proxy->login($_ENV["PROXY_TEST_USERNAME"], $_ENV["PROXY_TEST_PASSWORD"]);
$this->_hichannel = new HiNetHichannel("KISS RADIO 大眾廣播電台", $proxy);
$this->_hichannel->loadApi();
}
Expand Down

0 comments on commit 4e042b8

Please sign in to comment.