Dave Marshall

Results 121 comments of Dave Marshall

First attempt: ![first attempt](https://dl.dropboxusercontent.com/u/1819148/mockery_430x100.png) Vectorised from http://en.wikipedia.org/wiki/File:Northern_Mocking_Bird_Display.jpg

Thank you David, looks like we'll need to drop 7.0 support to merge this?

Definitely debatable, but nobody turned up to the [debate](https://github.com/mockery/mockery/pull/1180#issuecomment-1137008454) and then I forgot...

> Regarding BC Break, > > could/should we internally set the default expectation for method stubs `->shouldReceive(…)` to `->once()` and allow it to be overwritten? > ... > Thoughts? If...

Morning! I would err on the side of caution here and maintain BC, but easy enough to raise a deprecation warning? It's hard to say what the users would expect...

Hi Matthew, sorry for the delay. I think you may have some wires crossed here, by the looks of the code, you're probably looking for instance mocks. Something like this...

> Isn't it a common way to provide class constants so API consumers can use them? Sorry I should have been clear, class constants are fine. The brittleness comes from...

There are a few ways, but the overarching theme is called Inversion of Control. Here's an example where the control is inverted using a method called Dependency Injection. ``` php...

Hi there I find using `andReturnUsing()` the easiest way to do this: ``` php