Open cyrillkalita opened 8 months ago
@lorisleiva there is a static::shouldRun() method, which is a wrapper around static::mock()->shouldRecieve('handle')
static::shouldRun()
static::mock()->shouldRecieve('handle')
Would you have any reservations to add shouldExpect().. something like:
shouldExpect()
/** * @return Expectation|ExpectationInterface|ExpectsHigherOrderMessage */ public static function shouldExpect() { return static::mock()->expects('handle'); }
I like how expects allows you to both set expectations and evaluate it after..?
expects
I like it and I would merge a PR containing this.
@lorisleiva there is a
static::shouldRun()
method, which is a wrapper aroundstatic::mock()->shouldRecieve('handle')
Would you have any reservations to add
shouldExpect()
.. something like:I like how
expects
allows you to both set expectations and evaluate it after..?