You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, a mock has the same interface and the same behavior than it's model, that is to say if foo::bar() return true, \mock\foo::bar() return true too.
It must be interesting to allow the user to change this, i.e. a call to \mock\foo::bar() return by default null instead of true.
The idea is to define \mageekguy\atoum\mock\generator::mockAllMethods() and \mageekguy\atoum\mock\generator::notMockAllMethods() to do that :
By default, a mock has the same interface and the same behavior than it's model, that is to say if
foo::bar()
returntrue
,\mock\foo::bar()
returntrue
too.It must be interesting to allow the user to change this, i.e. a call to
\mock\foo::bar()
return by defaultnull
instead oftrue
.The idea is to define
\mageekguy\atoum\mock\generator::mockAllMethods()
and\mageekguy\atoum\mock\generator::notMockAllMethods()
to do that :The text was updated successfully, but these errors were encountered: