Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 4 days ago
JSON representation

WordPress API Mocking Framework

Awesome Lists containing this project

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