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