php-mock/php-mock-mockery
Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed.
Mock non deterministic built-in PHP functions (e.g. time() or rand()) with Mockery.
How can I help you explore Laravel packages today?