adriansuter/php-autoload-override
Override fully qualified global function calls inside class methods so you can mock them in tests. Works with PHP 8.2+ and Composer PSR-4 autoloading; integrates via a PHPUnit bootstrap using OverrideFactory to map functions (e.g., rand) to real implementations.
Override global scoped fully qualified function calls inside your class methods in order to be able to mock them during testing.
How can I help you explore Laravel packages today?