PHPackages                             webtheory/wpunit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. webtheory/wpunit

ActiveLibrary[Testing &amp; Quality](/categories/testing)

webtheory/wpunit
================

Framework for testing WordPress plugins and themes

0.4.0(4y ago)15173MITPHPPHP &gt;=7.4

Since Dec 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spider-mane/wpunit)[ Packagist](https://packagist.org/packages/webtheory/wpunit)[ Docs](https://github.com/spider-mane/wpunit)[ RSS](/packages/webtheory-wpunit/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (17)Versions (6)Used By (3)

WPUnit
======

[](#wpunit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dbb3d7c49bf03353ff9e63b021a03d8cd48588675d7af32cd2a907951eb02f20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765627468656f72792f7770756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webtheory/wpunit)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f04ffe37567277f2bf187247f7562597981ba4f09d448424f3f70610d6349a4c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7370696465722d6d616e652f7770756e69742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/spider-mane/wpunit)[![Coverage Status](https://camo.githubusercontent.com/a9b660b8df194ba229789ee3bfa50c24b4bfb654efa91e29beb3202cfc873574/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7370696465722d6d616e652f7770756e69742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spider-mane/wpunit/code-structure)[![Quality Score](https://camo.githubusercontent.com/3f8792bd3fdcd5197ff46840013be22c981174f91c608488b994c2a7098ae9e8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7370696465722d6d616e652f7770756e69742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spider-mane/wpunit)[![Total Downloads](https://camo.githubusercontent.com/b4d14f61eb62809954015f33379b3e879bbb372c454c7a31a26cfb58d789bda8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765627468656f72792f7770756e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webtheory/wpunit)

Framework for testing WordPress plugins and themes

Install
-------

[](#install)

Via Composer

```
composer require webtheory/wpunit
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chris Williams](https://github.com/spider-mane)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

5

Last Release

1534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42c6c17a141acad92bd90ad7b7e574ea19ecb332f33272a041261566670576cf?d=identicon)[webtheory](/maintainers/webtheory)

---

Top Contributors

[![spider-mane](https://avatars.githubusercontent.com/u/17187449?v=4)](https://github.com/spider-mane "spider-mane (7 commits)")

---

Tags

webtheorywpunit

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webtheory-wpunit/health.svg)

```
[![Health](https://phpackages.com/badges/webtheory-wpunit/health.svg)](https://phpackages.com/packages/webtheory-wpunit)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
