Packagist · packagist:php-mock/php-mock-phpunit
php-mock/php-mock-phpunit active
Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.
| Latest stable version | 2.16.0 |
|---|---|
| Published | 2026-10-02 09:10:45+00:00 |
| Install | composer require php-mock/php-mock-phpunit |
| Required PHP version (composer.json) | PHP >=7 |
| License | WTFPL |
| Advisories on latest version | none known |
| Last verified | 2026-10-09 15:04:12 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-10-02 09:10:45 UTC · 7 days ago |
| Stable releases in the last 12 months | 3 |
| Published versions | 31 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.16.0 | 2026-10-02 09:10:45 UTC |
2.15.0 | 2026-02-06 09:12:10 UTC |
2.14.0 | 2025-11-19 21:07:31 UTC |
2.13.1 | 2025-09-23 06:00:08 UTC |
2.13.0 | 2025-03-19 20:58:51 UTC |
2.12.0 | 2025-03-12 15:12:11 UTC |
2.11.0 | 2025-03-08 19:55:19 UTC |
2.10.0 | 2024-02-11 07:24:16 UTC |
2.9.0 | 2023-12-01 21:50:22 UTC |
2.8.0 | 2023-10-30 07:06:12 UTC |
2.7.2 | 2023-06-13 07:46:04 UTC |
2.7.1 | 2023-03-21 06:55:31 UTC |
2.7.0 | 2023-03-06 17:25:07 UTC |
2.6.1 | 2022-09-07 20:40:07 UTC |
2.6.0 | 2020-02-08 15:44:47 UTC |
2.5.0 | 2019-10-05 21:44:04 UTC |
2.4.0 | 2019-06-07 12:26:51 UTC |
2.3.0 | 2019-04-06 07:29:41 UTC |
2.2.0 | 2019-03-05 20:23:48 UTC |
2.1.2 | 2018-10-07 14:38:37 UTC |
Showing the 20 most recent of 31 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | 2.16.0 |
php 8.0 | 2.16.0 |
php 8.1 | 2.16.0 |
php 8.2 | 2.16.0 |
php 8.3 | 2.16.0 |
php 8.4 | 2.16.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of php-mock/php-mock-phpunit?
The latest stable version of php-mock/php-mock-phpunit is 2.16.0, published on 2026-10-02. Verified by Vigia on 2026-10-09.
How do I install the latest version of php-mock/php-mock-phpunit?
Run composer require php-mock/php-mock-phpunit. The latest stable version is 2.16.0 (verified 2026-10-09).
Is php-mock/php-mock-phpunit deprecated?
No. php-mock/php-mock-phpunit is not marked as deprecated in the registry.
Which PHP version does php-mock/php-mock-phpunit require?
php-mock/php-mock-phpunit 2.16.0 declares this requirement: PHP >=7.
Does php-mock/php-mock-phpunit 2.16.0 have known vulnerabilities?
No known advisories affect php-mock/php-mock-phpunit 2.16.0 according to the data Vigia checks.
Is php-mock/php-mock-phpunit still maintained?
php-mock/php-mock-phpunit published 3 stable releases in the last 12 months; the most recent was 7 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- intervention/httpauth
- rappasoft/laravel-authentication-log
- spatie/phpunit-watcher
- allure-framework/allure-php-commons
- temporal/sdk
- matanyadaev/laravel-eloquent-spatial
- simplesamlphp/saml2
- enlightn/security-checker
- laravel/vonage-notification-channel
- the-tinderbox/clickhouse-php-client
- google-gemini-php/client
- brick/date-time
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/php-mock/php-mock-phpunit) [](https://vigia.coredls.cloud/packagist/php-mock/php-mock-phpunit) [](https://vigia.coredls.cloud/packagist/php-mock/php-mock-phpunit)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/php-mock/php-mock-phpunit
GET https://vigia.coredls.cloud/v1/packages/packagist/php-mock/php-mock-phpunit/versions/{version}