Good point, please open a bug for this.
T.
On 08/16/2012 08:50 AM, Florin Jurcovici wrote:
> 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 ob
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