|
From: Manuel V. <man...@gm...> - 2009-10-22 11:25:16
|
On Thu, Oct 22, 2009 at 1:16 PM, Manuel Vacelet <man...@gm...> wrote: > On Wed, Oct 21, 2009 at 9:59 PM, Marcus Baker <ma...@wo...> wrote: >> Hi... >> >> Nicolas Terray wrote: >>> Is it a bug? >> >> Yes. >> >> My next chance to look at this will be towards the end of next week. >> SimpleTest has two strategies for mocking, subclassing or creating a >> fake class with an identical interface. In this case it tried to >> subclass when it wasn't capable. This should be easily fixable. > > Hello Marcus, > > Just for my understanding, if it's not too long to explain, when do > you subclass and when do you "fake class" ? > > I realize it's probably why it's not possible to use proper type > hinting with mocked objects. I just tested the SVN version of simpletest and the problem I highlight is fixed. Sorry for the noise! Manuel |