| 12345678910111213141516 |
- <?php
- namespace Tests\Support;
- /** Test transport only; provider request building and signing still execute normally. */
- class RecordingProviderClient
- {
- public static array $requests = [];
- public static string $responseBody = '{}';
- public function __construct(private array $config = []) {}
- public function post(string $url, array $options): \GuzzleHttp\Psr7\Response
- {
- self::$requests[] = ['url' => $url, 'options' => $options] + $this->config;
- return new \GuzzleHttp\Psr7\Response(200, [], self::$responseBody);
- }
- }
|