Testing multiple calls to an object
Have you ever wanted to test multiple writes to $stderr
? Mocking frameworks aren’t good at that, instead you can write a simple class to record method calls.
And in your tests:
Have you ever wanted to test multiple writes to $stderr
? Mocking frameworks aren’t good at that, instead you can write a simple class to record method calls.
And in your tests:
You’re reading an archived weblog post that was originally published on our website.