Why does the mock()->makePartial() function need to be called on a separate line? What am I missing?
This works:
$mock = Mockery::mock()->makePartial();
$mock->shouldReceive(123);
This doesn't work:
$mock = Mockery::mock()->makePartial()
->shouldReceive(123);
phpunit returns an error for test_chained:
TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class Mockery\Expectation does not have a method "setTime"