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.
123456789101112131415161718192021222324252627282930<?php
declare(strict_types=1);
namespace Tests\Domain\OAuth;
use App\Domain\OAuth\UsedRefreshToken;use Tests\TestCase;
class UsedRefreshTokenTest extends TestCase{ public function testGetters(): void { $used = new UsedRefreshToken(tokenId: 7, refreshToken: 'refresh-xyz');
$this->assertSame(7, $used->getTokenId()); $this->assertSame('refresh-xyz', $used->getRefreshToken()); }
public function testJsonSerialize(): void { $used = new UsedRefreshToken(tokenId: 7, refreshToken: 'refresh-xyz');
$this->assertSame( ['tokenId' => 7, 'refreshToken' => 'refresh-xyz'], $used->jsonSerialize() ); }}