This is so far beyond the pale of acceptability that it almost seems impossible. I would email the teacher (as this really deserves a paper trail) saying how you are astonished and must have misunderstood what's happening. Ask the teacher for an explanation before going to higher authorities.