1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-23 09:34:00 +01:00

Use more accurate assertion while checking for non-existent array's key

This commit is contained in:
Gabriel Caruso 2018-11-16 10:34:39 -02:00
parent 51cb9063b8
commit 7f82c29209
No known key found for this signature in database
GPG Key ID: EA85C7988F5A6877

View File

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