[http://martinfowler.com/articles/mocksArentStubs.html|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)
<wolffy> if you create a pretend array with pretend information, thats an example of a (kind of) stub
<wolffy> 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
<wolffy> 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
Page History
Date/CommentUserIPVersion
20 Sep 2004 (10:39 UTC)
Stephan Borg218.214.1.1134
Current • Source
Stephan Borg218.214.1.1133
View • Compare • Difference • Source
system0.0.0.02
View • Compare • Difference • Source