Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Tests\Support;
use Psr\Http\Client\ClientExceptionInterface;use Psr\Http\Message\RequestInterface;use Psr\Http\Message\ResponseInterface;use Wotnak\Atproto\Client\XrpcRequestSenderInterface;
final readonly class FailingXrpcRequestSender implements XrpcRequestSenderInterface {
public function __construct( private ClientExceptionInterface $exception, ) {}
public function send(RequestInterface $request): ResponseInterface { throw $this->exception; }
}