Mocks a given function, allowing you to track the number of times it's been called and what
values it returned with. You should call the return value from this function rather than the
original value you passed in if you want the mocked function to be properly tracked.
Mocks a given function, allowing you to track the number of times it's been called and what values it returned with. You should call the return value from this function rather than the original value you passed in if you want the mocked function to be properly tracked.