However, the teacher in question, Mr Torrence, has his own Twitter account and saw the rant after another student retweeted it including his Twitter handle, reports Gawker.

The unnamed teenager blasted: "I hate you Mr. Torrence. You said the test was in Wednesday, so give it to us on Wednesday, not Tuesday. #YouNeedACalendar #ScrewYou"

The light-hearted teacher decided to project the tweet at the front of the class to teach his pupil a lesson.

Another student from the class has said that the test was in fact on Tuesday and that his classmate must not have been listening properly when it was announced.

The incident surfaced on the internet after an anonymous member of the class posted a picture of the projection on Reddit, along with the caption: "A kid in my class tweeted about a test we had. Here was our teacher's background today."