ELI5: Explain Like I'm 5

Mock object

Mock objects are like pretend objects. They act like real objects, but they are not real. They are helpful in programming because they can be used to pretend something is happening so that programmers can fill in the pieces of code. For example, a programmer may use a mock object to pretend that a user is logged in so that they can run some tests on their code without actually having the user be logged in.
Related topics others have asked about: