PHPackages                             lipemat/wp-unit - 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. lipemat/wp-unit

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

lipemat/wp-unit
===============

Forked Wp-unit with support for testing against existing database and other environment enhancements.

4.8.1(2mo ago)764.1k↓16.7%31MITPHPPHP &gt;=7.4.0CI passing

Since Dec 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/lipemat/wp-unit)[ Packagist](https://packagist.org/packages/lipemat/wp-unit)[ GitHub Sponsors](https://github.com/lipemat)[ RSS](/packages/lipemat-wp-unit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (68)Used By (1)

WP Unit
=======

[](#wp-unit)

[![](https://camo.githubusercontent.com/91ead02a6c99375d259f03f1075c9d0b5ab9c5ae282783b252fef7d3205a266b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6970656d61742f77702d756e69742e7376673f6c6162656c3d76657273696f6e)](https://github.com/lipemat/wp-unitreleases)[![](https://camo.githubusercontent.com/502074bc585ca12ff252181a517579b047689578216cfe6144f1408d3abf6dc3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776f726470726573732d3e3d362e312e302d677265656e2e737667)](https://camo.githubusercontent.com/502074bc585ca12ff252181a517579b047689578216cfe6144f1408d3abf6dc3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776f726470726573732d3e3d362e312e302d677265656e2e737667)[![](https://camo.githubusercontent.com/b6dcd229a6bb3100aa793cb554ab9c031a7072a7c3c7a2ac1c820c2c3987f147/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c6970656d61742f77702d756e69742e7376673f636f6c6f723d62726f776e)](https://camo.githubusercontent.com/b6dcd229a6bb3100aa793cb554ab9c031a7072a7c3c7a2ac1c820c2c3987f147/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c6970656d61742f77702d756e69742e7376673f636f6c6f723d62726f776e)[![Packagist](https://camo.githubusercontent.com/6cf34116894cb209e3d3178666faaf76c3eecb2f6d1e67cace6f22a82c9866b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6970656d61742f77702d756e69742e737667)](https://camo.githubusercontent.com/6cf34116894cb209e3d3178666faaf76c3eecb2f6d1e67cace6f22a82c9866b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6970656d61742f77702d756e69742e737667)

Fork of WordPress core phpunit test suite to support bootstrapping an existing database plus many other enhancements.

> Note: Version 4 has diverged from the original WordPress core tests. [More information here.](https://github.com/lipemat/wp-unit/wiki/Version-4-Migration)

Original may be cloned from here: **git://develop.git.wordpress.org/tests/phpunit**

Usage
-----

[](#usage)

Install using composer either in your project or in a global location to be used among all projects.

```
composer require --dev lipemat/wp-unit
```

Example phpunit.xml

```

            ./tests

```

Example bootstrap.php file

```
