Call them spies, not stubs.

That seems to be the standard name for a function
that records its calls.