NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1739 most downloaded on Packagist
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
2.16.0
Last release 1 months ago
02 Oct 2026
Release timing varies
gaps range from 2 weeks to 13 months
Most releases are documented
notes for 20 of 31 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
31 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
fix: PHPUnit 13.0.1 tests by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/94
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.15.0...2.16.0
chore: Run tests on PHPUnit ~12.5.0 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/91
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.14.0...2.15.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: PHP 8.5 deprecation notice - setAccessible by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/90
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.13.1...2.14.0
fix: PHP 8.4 deprecation notice - implicit nullable parameters by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/86
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.13.0...2.13.1
feat: Support for PHPUnit 12.0.9 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/80
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.12.0...2.13.0
feat: Clean-up listener/subscriber after the test by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/78
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.11.0...2.12.0
QA: Run tests on PHPUnit ~11.1.0 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/69
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.10.0...2.11.0
chore: squizlabs/php_codesniffer 3.8.0 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/66
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.9.0...2.10.0
qa: Run unit tests on PHP 8.3 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/64
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.8.0...2.9.0
feat: PHPUnit 10.4 support by @marcoscoelho in https://github.com/php-mock/php-mock-phpunit/pull/63
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.7.2...2.8.0
qa: Update GHA workflow for PHPUnit 10.1 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/59
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.7.1...2.7.2
fix: PHPUnit 10.0.17 compatibility by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/57
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.7.0...2.7.1
feat: Support for PHPUnit 10 by @michalbundyra in https://github.com/php-mock/php-mock-phpunit/pull/56
Full Changelog: https://github.com/php-mock/php-mock-phpunit/compare/2.6.1...2.7.0
- #51 Adds phpspec/prophecy as dev dependency
phpspec/prophecy as dev dependencyNothing published for this version
- #40 Adds PHPUnit 8.3 and 8.4 support
- #37 adds PHPUnit 8.2 support - #37 removes HHVM support
- #35 adds PHPUnit 8.1 support
Nothing published for this version
### Added: - #30 adds PHPUnit 7.4 support
### Added: - #28 adds PHPUnit 7.1 support
### Added: - #27 adds PHPUnit 6.5 and 7.0 support ### Removed: - #27 removes abstract methods getMockBuilder and getTestResultObject in PHPMock trait
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.