Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.
composer require php-mock/php-mock-phpunit
| 类型 | library |
|---|---|
| 仓库 | https://github.com/php-mock/php-mock-phpunit |
| 最新版本 | 2.15.0 |