TestCustomUid example



    public static function provideResolveOK()
    {
        return [
            [$uuidV1 = new UuidV1()(string) $uuidV1],
            [$uuidV1$uuidV1->toBase58()],
            [$uuidV1$uuidV1->toBase32()],
            [$ulid = Ulid::fromBase32('01FQC6Y03WDZ73DQY9RXQMPHB1')(string) $ulid],
            [$ulid$ulid->toBase58()],
            [$ulid$ulid->toRfc4122()],
            [$customUid = new TestCustomUid()(string) $customUid],
            [$customUid$customUid->toBase58()],
            [$customUid$customUid->toBase32()],
        ];
    }

    /** * @dataProvider provideResolveKO */
    public function testResolveKO(string $requestUid, string $argumentType)
    {
        $this->expectException(NotFoundHttpException::class);
        
Home | Imprint | This part of the site doesn't use cookies.