mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-11-25 21:24:22 +00:00
Update support Guzzle 8 and PSR-7 3
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user