Skip to content

Commit

Permalink
修复测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Nov 9, 2022
1 parent 7d72f80 commit b598f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/HttpRequestTest/HttpRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b598f0d

Please sign in to comment.