PHPackages                             elementor/eunit - 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. elementor/eunit

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

elementor/eunit
===============

WordPress PHPUnit Testing Library

0.0.10(3y ago)015.7k2PHP

Since Jun 27Pushed 1y ago4 watchersCompare

[ Source](https://github.com/elementor/eunit)[ Packagist](https://packagist.org/packages/elementor/eunit)[ RSS](/packages/elementor-eunit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

### Eunit

[](#eunit)

Make WordPress PHPUnit less painful

[**Explore the docs »**](https://elementor.github.io/eunit/)

[Report Bug .](https://github.com/elementor/eunit/issues/new?labels=bug&template=bug-report---.md)[Request Feature](https://github.com/elementor/eunit/issues/new?labels=enhancement&template=feature-request---.md)

About The Project
-----------------

[](#about-the-project)

Eunit is a php library to make WordPress PHPUnit less painful. Eunit is a collection of Test cases, common WordPress test helpers, and a few DB helpers to make the developer's life a little easier.

Getting Started
---------------

[](#getting-started)

Getting started with Eunit is simple and quick, just make sure you follow this guide.

### Installation

[](#installation)

#### Composer

[](#composer)

To install Eunit, via composer run the command below, and you will get the latest version

```
composer require --dev elementor/eunit
```

then you need to do is make sure to include composer autoloader in your PHPUnit `bootstrap.php`

```
// Require composer dependencies.
// Pending on your vendor directory
require_once dirname( dirname( __FILE__ ) ) . '/vendor/autoload.php';
```

#### Manually

[](#manually)

You can also install Eunit via git,

```
git clone https://github.com/elementor/eunit.git
```

Then you need to do is make sure to include Eunit instance in your PHPUnit bootstrap.php

```
// Require eunit.php
// Pending on your directory structure
require_once dirname( dirname( __FILE__ ) ) . '/eunit/eunit.php';
\Eunit\Eunit::instance();
```

### Configuration

[](#configuration)

Before actually using Eunit you need to add a few environment variables to you PHPUnit runtime which can be done be editing your `phpunit.xml` in the element.

`EUNIT_TEST_CASE_NAMESPACE` should be set to the plugin main namespace

```

```

All that is left is to start using Eunit, head over to the [Docs to learn more](https://elementor.github.io/eunit/).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.8% 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 ~48 days

Recently: every ~73 days

Total

10

Last Release

1348d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52e97975aba2d88f5f08563635a4fc819183b5c6719d1547d4f87e4a8fde14e0?d=identicon)[KingYes](/maintainers/KingYes)

---

Top Contributors

[![bainternet](https://avatars.githubusercontent.com/u/660572?v=4)](https://github.com/bainternet "bainternet (36 commits)")[![ranshoshani34](https://avatars.githubusercontent.com/u/88270415?v=4)](https://github.com/ranshoshani34 "ranshoshani34 (3 commits)")[![idofri](https://avatars.githubusercontent.com/u/17390187?v=4)](https://github.com/idofri "idofri (1 commits)")[![OpsPita](https://avatars.githubusercontent.com/u/65499294?v=4)](https://github.com/OpsPita "OpsPita (1 commits)")

---

Tags

hosting-dev

### Embed Badge

![Health badge](/badges/elementor-eunit/health.svg)

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

###  Alternatives

[unionofrad/li3_quality

This li₃ plugin adds code quality assurance to your toolbelt.

1288.2k](/packages/unionofrad-li3-quality)[lorenzo/cakephp-fixturize

Provides custom Fixture classes to help managing test fixtures in pure SQL

2913.4k](/packages/lorenzo-cakephp-fixturize)[liip/drupalconnectormodule

The DrupalConnector Module is an abstraction layer to the Drupal 7 API of global functions in order to use them in an OOD setup.

121.7k3](/packages/liip-drupalconnectormodule)

PHPackages © 2026

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