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
When creating a mock overload, making it partial does not actually make anything.
// given this classclassFoo {
publicfunctionbar() {
return "barrrrr";
}
publicstaticfunctionbaz() {
return "bazzzzz";
}
}
// and this mockMockery::mock('overload:Foo')->makePartial();
// Expected$f = newFoo();
$f->bar() // => barrrrr$f::baz() // => bazzzzz// Actual// Method Foo::bar() does not exist on this mock object// Static method Foo::baz() does not exist on this mock object
Is there a way to make this work ?
The text was updated successfully, but these errors were encountered:
When creating a mock overload, making it partial does not actually make anything.
Is there a way to make this work ?
The text was updated successfully, but these errors were encountered: