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\Repo;
use App\Domain\Repo\CborBytes;use Tests\TestCase;
class CborBytesTest extends TestCase{ public function testGetBytesReturnsConstructorValue(): void { $raw = "\x00\x01\x02hello"; $wrapped = new CborBytes($raw);
$this->assertSame($raw, $wrapped->getBytes()); }
public function testSupportsEmptyByteString(): void { $wrapped = new CborBytes('');
$this->assertSame('', $wrapped->getBytes()); }}