Skip to content

Commit

Permalink
Use $_SERVER instead of $_ENV to read environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Mar 14, 2022
1 parent 5b77453 commit fff54b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Handler/Network/StreamHandlerTest.php
Expand Up @@ -16,7 +16,7 @@ class StreamHandlerTest extends TestCase
{
public function setUp(): void
{
if (!($_ENV['GUZZLE_TEST_ALLOW_NETWORK'] ?? false)) {
if (!($_SERVER['GUZZLE_TEST_ALLOW_NETWORK'] ?? false)) {
self::markTestSkipped("This test requires the GUZZLE_TEST_ALLOW_NETWORK environment variable.");
}
}
Expand Down

0 comments on commit fff54b0

Please sign in to comment.