NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
mocking! (Score:1)
In a statically typed language, you will just read the interface. And you are sure this is only what you need to implement, else the application would not compile
In a dynamically typed language, you will either have to filter the code that use the object you want to mock to see what is bein used, a process of trial and error. Or you will rely on documentation, which is not as strong as a compile time check.
So the lesson I learned is, programming with interfaces helps in creating mock objects.
And the main problem I see is figuring out what to implement or override, not how?
Reply to This