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
We have $this->function->$functionName = function () { … } to mock a function easily. Is it possible to use the same mechanism to mock a constant? I tried $this->constant->$constantName without no success. Do you have any clue?
Hello :-),
We have
$this->function->$functionName = function () { … }
to mock a function easily. Is it possible to use the same mechanism to mock a constant? I tried$this->constant->$constantName
without no success. Do you have any clue?Thanks!
cc @mageekguy, @jubianchi
The text was updated successfully, but these errors were encountered: