pH testing in gynecology is a diagnostic tool used to measure the acidity or alkalinity of the vaginal environment. This helps in assessing the vaginal health and identifying any potential infections or imbalances. The pH scale ranges from 0 to 14, where a pH of 7 is neutral, below 7 is acidic, and above 7 is alkaline.