From 7f82c29209f156eda72086d88ee9e2c36cb987ad Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Fri, 16 Nov 2018 10:34:39 -0200 Subject: [PATCH] Use more accurate assertion while checking for non-existent array's key --- tests/Handler/StreamHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Handler/StreamHandlerTest.php b/tests/Handler/StreamHandlerTest.php index 495cd95f..6c10ec3f 100644 --- a/tests/Handler/StreamHandlerTest.php +++ b/tests/Handler/StreamHandlerTest.php @@ -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()