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)016.6k2PHP

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 today

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

32

—

LowBetter than 69% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity27

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

1395d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/902548?v=4)[Yakir Sitbon](/maintainers/KingYes)[@KingYes](https://github.com/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

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k79](/packages/elgg-elgg)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[rainlab/user-plugin

User plugin for October CMS

11955.0k15](/packages/rainlab-user-plugin)

PHPackages © 2026

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