Created by: system, Last modification: 20 Sep 2004 (10:39 UTC) by Stephan Borg
Taken from Stubs and Mock Objects.


A simple example of stubs is - you tell me what information you want to present in the installer - and how its best that I give you that information (ie via an array). If you create a pretend array with pretend information, thats an example of a (kind of) stub. A proper stub, is when you are referring to a class - say a user object, but rather than it getting its info from a database table, its all hardcoded - enough for you to work with. Once you are happy with the info is 'should' present to you (and more importantly how), you are able to redesign the class with real information.