Update support Guzzle 8 and PSR-7 3

This commit is contained in:
Alex
2026-11-10 21:49:08 +03:00
parent 0ee7382264
commit 1aa13336de
8 changed files with 156 additions and 19 deletions
+11
View File
@@ -38,6 +38,17 @@ final class GuzzleCompatibilityTest extends TestCase
self::assertSame('{"text":"Hello"}', (string) $request->getBody());
}
#[Test]
public function sendsALowerCaseMethodInUpperCase(): void
{
$history = [];
$client = $this->client([new Response(200, [], '{"user_id":1}')], $history);
self::assertSame(['user_id' => 1], $client->request('get', '/me'));
self::assertCount(1, $history);
self::assertSame('GET', $history[0]['request']->getMethod());
}
#[Test]
public function preservesHttpErrorsForTheSdkToHandle(): void
{