newInstanceWithoutConstructor(); $tasks = ['summary', 'case_analysis', 'glucose_trend', 'lifestyle_advice', 'tcm_pattern', 'prescription_review', 'prescription_generate', 'medication_review', 'exam_review', 'complication_risk', 'guideline_review', 'custom']; foreach ($tasks as $task) { $validator = new DiagnosisValidate(); $validator->setLang(new think\Lang($unbootedApp)); if (!$validator->only(['task'])->check(['task' => $task])) throw new RuntimeException('Expected supported task: ' . $task); ++$checks; } foreach (['', 'source_only', 'glucose_trend,custom', 'CUSTOM', '