If your healthcare provider thinks you may have porphyria, lab tests may be done to confirm it. Blood, urine and stools tests are used to diagnose porphyria. DNA tests are available for certain types of porphyria.