8000 fix code style in testHeadRequestWithClosureBody · symfony/symfony@a6358e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6358e2

Browse files
committed
fix code style in testHeadRequestWithClosureBody
1 parent 727f020 commit a6358e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,18 +664,18 @@ public function testHeadRequestWithClosureBody()
664664
try {
665665
$client = $this->getHttpClient(__FUNCTION__);
666666

667-
$response = $client->request('HEAD', "http://localhost:8057/head", [
667+
$response = $client->request('HEAD', 'http://localhost:8057/head', [
668668
'body' => fn () => '',
669669
]);
670670
$headers = $response->getHeaders();
671671
} finally {
672672
$p->stop();
673673
}
674674

675-
$this->assertArrayHasKey("x-request-vars", $headers);
675+
$this->assertArrayHasKey('x-request-vars', $headers);
676676

677-
$vars = json_decode($headers["x-request-vars"][0], true);
677+
$vars = json_decode($headers['x-request-vars'][0], true);
678678
$this->assertIsArray($vars);
679-
$this->assertSame("HEAD", $vars["REQUEST_METHOD"]);
679+
$this->assertSame('HEAD', $vars['REQUEST_METHOD']);
680680
}
681681
}

0 commit comments

Comments
 (0)
0