When to mock
Published on by Eric L. Barnes
Adam Wathan has a new post discussing “When to mock”:
Test doubles come in a ton of different flavors.
Dummies, fakes, mocks, stubs, spies, oh my!
But I don’t think it needs to be this complicated. In my mind, there’s really only two categories of test doubles.
Eric is the creator of Laravel News and has been covering Laravel since 2012.