From b598f0dee548c328b5cfe07ca96a7559d5d0a572 Mon Sep 17 00:00:00 2001 From: Yurun Date: Wed, 9 Nov 2022 08:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/HttpRequestTest/HttpRequestTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/HttpRequestTest/HttpRequestTest.php b/tests/unit/HttpRequestTest/HttpRequestTest.php index aa69074..945ac5f 100644 --- a/tests/unit/HttpRequestTest/HttpRequestTest.php +++ b/tests/unit/HttpRequestTest/HttpRequestTest.php @@ -324,7 +324,7 @@ public function testRedirectCookie() $response = $http->post($this->host . '?a=redirectCookie'); $data = $response->json(true); - $this->assertEquals('1', $data['cookie']['redirectCookie'] ?? null); + $this->assertEquals('1', isset($data['cookie']['redirectCookie']) ? $data['cookie']['redirectCookie'] : null); $cookieItem = $http->getHandler()->getCookieManager()->getCookieItem('redirectCookie'); $this->assertNotNull($cookieItem); $this->assertEquals('1', $cookieItem->value);