Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/10up/wp_mock
WordPress API Mocking Framework
https://github.com/10up/wp_mock
mockery mocking-library monkey-patching patchwork phpunit testing-library unit-testing wordpress
Last synced: 27 days ago
JSON representation
WordPress API Mocking Framework
- Host: GitHub
- URL: https://github.com/10up/wp_mock
- Owner: 10up
- License: other
- Created: 2013-03-26T15:49:40.000Z (over 11 years ago)
- Default Branch: trunk
- Last Pushed: 2024-08-08T04:42:42.000Z (3 months ago)
- Last Synced: 2024-10-01T08:01:23.378Z (about 1 month ago)
- Topics: mockery, mocking-library, monkey-patching, patchwork, phpunit, testing-library, unit-testing, wordpress
- Language: PHP
- Homepage: https://wp-mock.gitbook.io
- Size: 1.25 MB
- Stars: 675
- Watchers: 42
- Forks: 69
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - 10up/wp\_mock - WordPress API Mocking Framework (PHP)
README
# WP_Mock
> WP_Mock is an API mocking framework, built and maintained by [10up](https://10up.com) and [GoDaddy](https://godaddy.com) for the purpose of making it possible to properly unit test within a WordPress project.
![Support Level][support-level-image] ![PHP 7.4+][php-image] [![Coverage Status][coveralls-image]][coveralls-url] [![Packagist][packagist-image]][packagist-url] [![BSD-3-Clause License][license-image]][license-url]
## Installation
Install WP_Mock as a dev-dependency using Composer:
```php
composer require --dev 10up/wp_mock
```## Documentation
Learn more about how to configure and how to use WP_Mock by reading [the WP_Mock documentation](https://wp-mock.gitbook.io/documentation/getting-started/introduction).
## Changelog
A complete listing of all notable changes is documented in the [Changelog](https://github.com/10up/wp_mock/blob/trunk/CHANGELOG.md).
## Support Level
**Active:** [10up](https://10up.com) and [GoDaddy](https://godaddy.com) are actively working on this, and we expect to continue work for the foreseeable future, including testing with the most recent version of WordPress and PHP. Bug reports, feature requests, questions, and pull requests are welcome.
## Contributing
Please read our [Code of Conduct](https://github.com/10up/wp_mock/blob/trunk/CODE_OF_CONDUCT.md) for details on our code of conduct and our [Contributing Guidelines](https://github.com/10up/wp_mock/blob/trunk/CONTRIBUTING.md) for details on the process for submitting pull requests.
## Supporters
WP_Mock is supported by [10up](https://10up.com) and [GoDaddy](https://godaddy.com). [GitBook](https://www.gitbook.com/) kindly offers free hosting for [WP_Mock documentation](https://wp-mock.gitbook.io/documentation/getting-started/introduction).
A special thanks to all [WP_Mock contributors](https://github.com/10up/wp_mock/blob/trunk/CREDITS.md).
## Like what you see?
[support-level-image]: https://img.shields.io/badge/support-active-green.svg
[php-image]: https://img.shields.io/badge/php-7.4%2B-green.svg
[packagist-image]: https://img.shields.io/packagist/dt/10up/wp_mock.svg
[packagist-url]: https://packagist.org/packages/10up/wp_mock
[coveralls-image]: https://coveralls.io/repos/github/10up/wp_mock/badge.svg?branch=trunk
[coveralls-url]: https://coveralls.io/github/10up/wp_mock?branch=trunk
[license-image]: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg
[license-url]: https://github.com/10up/wp_mock/blob/trunk/LICENSE.md