equals($config->tenantId)); self::assertSame($subdomain, $config->subdomain); self::assertSame($databaseUrl, $config->databaseUrl); } #[Test] public function itIsImmutable(): void { $config = new TenantConfig( tenantId: TenantId::fromString('a1b2c3d4-e5f6-7890-abcd-ef1234567890'), subdomain: 'ecole-alpha', databaseUrl: 'postgresql://user:pass@localhost:5432/classeo_alpha', ); $reflection = new ReflectionClass($config); self::assertTrue($reflection->isReadonly()); } }