Stub vs Mock vs Spy

In the following article, three auxiliary objects used in unit tests – stub, mock and spy – will stand in front of each other in the ring. You'll learn why we use these types of objects, see examples of them, and learn about the differences between them. (…)