A mocking library to take the pain out of unit testing for WordPress
Installs: 1 714 168
Open Issues: 11
- php: >=7.3 < 9.0
- antecedent/patchwork: ^2.1
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5.24
- behat/behat: ^v3.11.0
- php-coveralls/php-coveralls: ^v2.5.3
- sebastian/comparator: ^4.0.8
- sempro/phpunit-pretty-print: ^1.4
WP_Mock is an API mocking framework, built and maintained by 10up and GoDaddy for the purpose of making it possible to properly unit test within a WordPress project.
Install WP_Mock as a dev-dependency using Composer:
composer require --dev 10up/wp_mock
Learn more about how to configure and how to use WP_Mock by reading the WP_Mock documentation.
Please read our Code of Conduct for details on our code of conduct, and our Contributing Guidelines for details on the process for submitting pull requests.
WP_Mock is supported by 10up and GoDaddy. GitBook kindly offers free hosting for WP_Mock documentation.
A special thanks to all WP_Mock contributors.