Mock objects (http://en.wikipedia.org/wiki/Mock_object) are really _objects_ as in OOP. What we are really providing are mock _functions_.

The reason I put references to mock objects in the readme and elsewhere is because this can be used to provide mock functions which can return mock objects, although mock objects themselves are nowhere in the code. (OOP is not used in this module).

It might be a good idea to clarify this and, perhaps in #2047845: Add a time dummy module to demonstrate our time-dependant data examples., create actual mock objects and not just mock functions as in the README examples.

Comments

alberto56’s picture

Version: » 7.x-1.x-dev
Status: Active » Closed (duplicate)

I am reviewing the project page info and readme.txt in #2060317: Make readme and module page clearer