'https://example.org', 'client_id' => 'https://quill.p3k.io', 'scope' => 'post' ]; $token = $tokenService->getNewToken($data); $valid = $tokenService->validateToken($token); $validData = [ 'me' => $valid->getClaim('me'), 'client_id' => $valid->getClaim('client_id'), 'scope' => $valid->getClaim('scope') ]; $this->assertSame($data, $validData); } }