php-mock/php-mock-phpunit
Integrate php-mock with PHPUnit to mock built-in PHP functions (like time(), file_get_contents(), etc.) in a controlled, namespaced way. Ideal for unit tests that need to simulate IO, time, and other global behaviors without changing production code.
Mock built-in PHP functions (e.g. time() or rand()) in PHPUnit.
How can I help you explore Laravel packages today?