Trying to inject a mock instead of the real dependency into a property fails, if there is an instanceof-like check in place. This seriously hampers the use of mocks in tests. This can be avoided if object mocks are derived from the class of the object they mock.
-- Rule of Diversity: Distrust all claims for “one true way”. (Eric S. Raymond, The Art Of Unix Programming) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
