turn state's evidence

When a charged criminal opts to cooperate with the state and tesitify agaist an accomplice in exchange for a more lienient sentance or treatment, they are said to have "turned state's evidence".