Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Tests\Support;
use Wotnak\Atproto\Identity\DnsTxtResolverInterface;
final readonly class IdentityTestDnsTxtResolver implements DnsTxtResolverInterface {
/** * @param array<string, list<string>> $records */ public function __construct( private array $records, ) {}
public function resolveTxt(string $name): array { return $this->records[$name] ?? []; }
}