After Midnight (1989)
WELCOME TO FEAR 101. THERE WILL BE A TEST.
Professor Derek teaches a course called "The Psychology of Fear." But his teaching methods are, ahem, unorthodox. The course is cut by the administration, but he continues the sessions at his home. When a disgruntled former student shows up, the Professor gives him a final exam in fear.