PHPackages                             jimmyoak/phpunit-test-checker - 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. jimmyoak/phpunit-test-checker

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

jimmyoak/phpunit-test-checker
=============================

1.3.2(10y ago)02.5kMITPHPPHP &gt;=5.3.3

Since Jan 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jimmyoak/phpunit-test-checker)[ Packagist](https://packagist.org/packages/jimmyoak/phpunit-test-checker)[ RSS](/packages/jimmyoak-phpunit-test-checker/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

PHPUnit test checker
====================

[](#phpunit-test-checker)

Description
-----------

[](#description)

Check for classes without tests. Intended for pre-commit hook.

Usage
-----

[](#usage)

Config file example (phpunit-test-checker.json):

```
{
  "suites": [
    {
      "src-path": "src/",
      "test-path": "test/",
      "test-case-suffix": "Test"
    }
  ]
}
```

Read config and check for classes with no tests:

```
use JimmyOak\PhpUnitChecker\Checker\Checker;

require_once __DIR__ . '/vendor/autoload.php';

$checker = new Checker(\JimmyOak\PhpUnitChecker\Config\JsonConfigReader::readFile(__DIR__ . '/phpunit-test-checker.json'));
$checker->check();
```

Output:

```
Classes with no tests:
        - Checker/Checker.php
        - Command/CheckerCommand.php

```

But if we run with this config...:

```
{
  "suites": [
    {
      "src-path": "src/",
      "test-path": "test/",
      "test-case-suffix": "Test",
      "excluded": [
        "Checker/Checker.php",
        "Command/"
      ]
    }
  ]
}
```

Outputs nothing :)

"Excluded" is just a regex like /^Command/, therefore if it's a folder put the / separator at the end.

TODO
----

[](#todo)

A lot of improvements. This is only an approach. (Proof of concept)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~0 days

Total

7

Last Release

3812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78fab774f12b9fcbee507458659c59fe18b691dd5033a0f0528f9f7e14f38eef?d=identicon)[jimmyoak](/maintainers/jimmyoak)

---

Top Contributors

[![jimmyoak](https://avatars.githubusercontent.com/u/7147129?v=4)](https://github.com/jimmyoak "jimmyoak (15 commits)")

---

Tags

phpphpunitcheckjimmyjimmyoakutilitieschecker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jimmyoak-phpunit-test-checker/health.svg)

```
[![Health](https://phpackages.com/badges/jimmyoak-phpunit-test-checker/health.svg)](https://phpackages.com/packages/jimmyoak-phpunit-test-checker)
```

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.7M1.2k](/packages/phan-phan)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

17114.2k44](/packages/robiningelbrecht-phpunit-coverage-tools)

PHPackages © 2026

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