1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 01:53:58 +01:00

Merge pull request #2204 from carusogabriel/patch-1

Use more accurate assertion while checking for non-existent array's key
This commit is contained in:
Márk Sági-Kazár 2018-11-16 14:39:00 +01:00 committed by GitHub
commit b8772dd9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ class StreamHandlerTest extends TestCase
'no' => ['*']
]]);
$opts = stream_context_get_options($res->getBody()->detach());
$this->assertTrue(empty($opts['http']['proxy']));
$this->assertArrayNotHasKey('proxy', $opts['http']);
}
public function testAddsTimeout()