wp_mock

WordPress API Mocking Framework (by 10up)

Wp_mock Alternatives

Similar projects and alternatives to wp_mock

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better wp_mock alternative or higher similarity.

wp_mock reviews and mentions

Posts with mentions or reviews of wp_mock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-11.
  • How Are Y'All Unit Testing Your WordPress Code (If You Are)
    5 projects | /r/ProWordPress | 11 Mar 2023
    There is an effort called WP_Mock started by GoDaddy which attempts to mock the WordPress API, thus doing what I just accused the official version of testing of getting wrong. And this also feels wrong. Running tests against a mock of WordPress' API feels insufficient except for the simplest cases. Also if I'm not actually "testing against WordPress" I don't get the benefits of the official way, like being able to easy test against future and past versions of WordPress. I'm just testing against whatever version the mock attempts to replicate.
  • Testing A Plugin With PHPUnit
    5 projects | /r/Wordpress | 21 Apr 2021
    You can mock out the WordPress functions with 10up/wp_mock

Stats

Basic wp_mock repo stats
2
654
7.4
about 2 months ago

10up/wp_mock is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of wp_mock is PHP.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com