| 123456789101112131415 |
- <?php
- namespace Tests\Support;
- /** Test transport only; provider request building and signing still execute normally. */
- class RecordingProviderClient
- {
- public static array $requests = [];
- 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, [], '{}');
- }
- }
|