PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.
composer require php-mock/php-mockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Mock the time() function in a specific namespace using PHPUnit.
Ensure the code under test uses the function without a leading backslash (e.g., time() instead of \time()).
No dependency data recorded yet.