'Scheduled rotation']); // WHEN $entry = new SecurityAuditLogEntry( id: $entryId, clientId: $clientId, clientIdentifier: $clientIdentifier, eventType: $eventType, details: $details, ); // THEN expect($entry)->toBeInstanceOf(Entity::class) ->and($entry)->toBeInstanceOf(HasTimestampIdentifier::class) ->and($entry->id())->toBe($entryId) ->and($entry->clientId)->toBe($clientId) ->and($entry->clientIdentifier)->toBe($clientIdentifier) ->and($entry->eventType)->toBe($eventType) ->and($entry->details)->toBe($details) ->and($entry->createdAt())->toBeInstanceOf(\DateTimeInterface::class) ->and($entry->createdAt()->getTimestamp())->toBe($entryId->toDateTime()->getTimestamp()); }); });