A Phoenix math teacher has been accused of groping students in his class for the past two years, according to court documents.