NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2365 most downloaded on Packagist
A mocking library to take the pain out of unit testing for WordPress
Latest stable
1.1.1
Last release 11 months ago
02 Dec 2025
Release timing varies
gaps range from 2 weeks to 3.6 years
Nearly every release is documented
notes for 12 of 12 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
12 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Explicitly mark parameter as nullable to address PHP deprecation warning by @agibson-godaddy in https://github.com/10up/wp_mock/pull/262
onFilter call issues related to the withAnyArgs method by @badasswp in https://github.com/10up/wp_mock/pull/259Full Changelog: https://github.com/10up/wp_mock/compare/1.1.0...1.1.1
onFilter call issues related to the withAnyArgs method by @badasswp in #259Full Changelog: 1.1.0...1.1.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
onFilter(...)->withAnyArgs() to be used multiple times on a single testsIgnore throws in function mocks by @unfulvio in #245
expectFilter mocks by @badasswp in #254withAnyArgs method for onFilter calls. by @badasswp in #256Full Changelog: 1.0.1...1.1.0
expectFilter mocks by @badasswp in https://github.com/10up/wp_mock/pull/254withAnyArgs method for onFilter calls. by @badasswp in https://github.com/10up/wp_mock/pull/256Full Changelog: https://github.com/10up/wp_mock/compare/1.0.1...1.1.0
expectFilter() mockswithAnyArgs() method for onFilter() callsesc_html())iExcpectWhenIRun() still exists but has been deprecated)Update WP_Mock::expectHookNotAdded() with new params by @unfulvio-godaddy in #234
WP_Mock::expectHookNotAdded() with new params by @unfulvio-godaddy in #234Full Changelog: 1.0.0...1.0.1
WP_Mock::expectHookNotAdded() with new params by @unfulvio-godaddy in https://github.com/10up/wp_mock/pull/234Full Changelog: https://github.com/10up/wp_mock/compare/1.0.0...1.0.1
WP_Mock::expectHookNotAdded() with new paramsUpdate DeprecatedMethodListener and add more test coverage by @unfulvio-godaddy in #208
FuzzyObject. by @rneudorf-godaddy in #203Support Level section by @jeffpaul in #217Full Changelog: 0.5.0...1.0.0
FuzzyObject. by @rneudorf-godaddy in https://github.com/10up/wp_mock/pull/203Support Level section by @jeffpaul in https://github.com/10up/wp_mock/pull/217Full Changelog: https://github.com/10up/wp_mock/compare/0.5.0...1.0.0
AccessInaccessibleClassMembers helpers in test caseWP_Mock main classHook::safe_offset() to handle closureIsEqualHtml extends PHPUnit ConstraintDocumentation updates by @jeffpaul in #140
trunk for this repo by @jeffpaul in #155Full Changelog: 0.4.2...0.5.0
trunk for this repo by @jeffpaul in https://github.com/10up/wp_mock/pull/155Full Changelog: https://github.com/10up/wp_mock/compare/0.4.2...0.5.0
AnyInstance matcher_n() to evaluate singular or pluralWP_Mock::setUsePatchwork(true) was broken)getAnnotations error from test classFull Changelog : 0.4.1...0.4.2
Full Changelog: 0.4.1...0.4.2
This release brings us up to date with the latest release of PHPUnit.
This release brings us up to date with the latest release of PHPUnit.
Please note: As with the previously-tagged release, this is not necessarily a stable release!
Full Changelog: 0.4.0...0.4.1
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.1 .
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.1.
Full Changelog: 0.3.0...0.4.0
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.1.
Full Changelog: https://github.com/10up/wp_mock/compare/0.3.0...0.4.0
Deprecate wpFunction and wpPassthruFunction by @johnpbloch in #78
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.0.
$callback should be defined as a callable type by @andreasciamanna in #102Full Changelog: 0.1.1...0.3.0
This release brings us up to date both with PHPUnit and with PHP itself. The minimum version of PHP now supported by the project is 7.0.
$callback should be defined as a callable type by @andreasciamanna in https://github.com/10up/wp_mock/pull/102Full Changelog: https://github.com/10up/wp_mock/compare/0.1.1...0.3.0
Deprecate wpFunction and wpPassthruFunction by @johnpbloch in #78
This release moves to using static, tagged versions hosted on Packagist. Aside from a handful of bugfixes, it's equivalent to the dev-dev version many have been using before July 2017. Moving forward, all versions will be static and tagged.
$callback should be defined as a callable type by @andreasciamanna in #102Full Changelog: 0.1.1...0.2.0
This release moves to using static, tagged versions hosted on Packagist. Aside from a handful of bugfixes, it's equivalent to the dev-dev version many have been using before July 2017. Moving forward, all versions will be static and tagged.
$callback should be defined as a callable type by @andreasciamanna in https://github.com/10up/wp_mock/pull/102Full Changelog: https://github.com/10up/wp_mock/compare/0.1.1...0.2.0
dev-dev version many have been using before July 2017. Moving forward, all versions will be static and tagged.Better documentation and phpDocumentor output
Currently, we only have source releases on Packagist (dev-master and 1.0.x-dev). This will be a distributable release that will allow local caching of
Currently, we only have source releases on Packagist (dev-master and 1.0.x-dev). This will be a distributable release that will allow local caching of the library so that not every use needs to be a git clone.
Full Changelog: https://github.com/10up/wp_mock/commits/0.1.0
One column per quarter.