History of StubsAndMockObects
[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
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