Something went wrong. Try again.
A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
pds php atproto
Something went wrong. Try again.
123456789101112131415161718192021222324252627<?php
declare(strict_types=1);
namespace Tests\Domain\Pds\Atproto\Identity;
use App\Domain\Pds\Atproto\Identity\ResolveHandleResponse;use Tests\TestCase;
class ResolveHandleResponseTest extends TestCase{ public function testGetDid(): void { $response = new ResolveHandleResponse('did:plc:alice');
$this->assertSame('did:plc:alice', $response->getDid()); }
public function testJsonSerialize(): void { $response = new ResolveHandleResponse('did:plc:alice');
$this->assertSame(['did' => 'did:plc:alice'], $response->jsonSerialize()); $this->assertSame('{"did":"did:plc:alice"}', (string) json_encode($response)); }}