tmarsteel/mockery-callable-mock
Create Mockery-friendly callable/function mocks in PHP. Set expectations (with args, counts), return values, stubs, and verify calls or non-calls. Can also wrap a real callable to spy while still invoking it. Requires PHP 7+.
Added spying functionality
::shouldHaveBeenCalled() and ::shouldNotHaveBeenCalled(... $args)How can I help you explore Laravel packages today?