Behold! As I Mock Time!
I believe in Test-Driven Development but had somehow had never gotten around to using mock objects until a few months ago. They’re super-useful when testing classes that write to files or query remote databases or what-have-you, or when the rest of your system is big and hairy and setting up tests takes ridiculously more work than the test itself. Read more