mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Fix curl hook test
This commit is contained in:
@@ -21,6 +21,7 @@ class CurlHookTest extends TestCase
|
||||
} else {
|
||||
$this->assertEquals(['Authorization: Bearer ' . getenv('GITHUB_TOKEN')], $header);
|
||||
}
|
||||
$header = [];
|
||||
putenv('GITHUB_TOKEN=token');
|
||||
CurlHook::setupGithubToken('GET', 'https://example.com', $header);
|
||||
$this->assertEquals(['Authorization: Bearer token'], $header);
|
||||
|
||||
Reference in New Issue
Block a user