PHPackages                             keisuke-matsufuji/phpunit-blocker - 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. keisuke-matsufuji/phpunit-blocker

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

keisuke-matsufuji/phpunit-blocker
=================================

Block phpunit filter options for over phpunit10

1.0.3(1y ago)41.4k↑150%PHP

Since Feb 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/keisuke-matsufuji/phpunit-blocker)[ Packagist](https://packagist.org/packages/keisuke-matsufuji/phpunit-blocker)[ RSS](/packages/keisuke-matsufuji-phpunit-blocker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

PHPUnitBlocker
==============

[](#phpunitblocker)

PHPUnitBlocker is custom implementation of PHPUnit Framework StartedSubscriber. It mainly blocks PHPUnit's filter option to prevent misconfiguration in CI.

Note that this library works with PHPUni10 or later. If you are using PHPUnit 9 or earlier, please refer to the following.

Installation
------------

[](#installation)

```
$ composer require keisuke-matsufuji/phpunit-blocker

```

Settings
--------

[](#settings)

To attach PHPUnitFilterBlocker as test listener, add following element to phpunit.xml. (Parent element is ``.)

```

```

If you want to block `--group` and `--exclude-group` options too, change `Off` to `On` setting value above.

About blocking
--------------

[](#about-blocking)

Block test case specification. (Fixed)

```
$ vendor/bin/phpunit tests/exampleTest.php
PHPUnit 10.5.10 by Sebastian Bergmann and contributors.

Test case specification has been disabled by phpunit-blocker. Stopped phpunit.

```

Block `--filter` option. (Fixed)

```
$ vendor/bin/phpunit tests/ --filter="Hello"
PHPUnit 10.5.10 by Sebastian Bergmann and contributors.

--filter option has been disabled by phpunit-blocker. Stopped phpunit.

```

Block `--group` option. (Option)

```
$ vendor/bin/phpunit tests/ --group=hello
PHPUnit 10.5.10 by Sebastian Bergmann and contributors.

--group option has been disabled by phpunit-blocker. Stopped phpunit.

```

Block `--exclude-group` option. (Option)

```
$ vendor/bin/phpunit tests/ --exclude-group=hello
PHPUnit 10.5.10 by Sebastian Bergmann and contributors.

--exclude-group option has been disabled by phpunit-blocker. Stopped phpunit.

```

No blocking example.

```
$ vendor/bin/phpunit tests/
PHPUnit 10.5.10 by Sebastian Bergmann and contributors.

..                                                                  2 / 2 (100%)

Time: 83 ms, Memory: 6.00 MB

OK (2 tests, 2 assertions)

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

4

Last Release

718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/279bfd6e294218835c5ed59db50645687b14192f199e73d0eb7e7a4df6b0860c?d=identicon)[keisuke-matsufuji](/maintainers/keisuke-matsufuji)

---

Top Contributors

[![keisuke-matsufuji](https://avatars.githubusercontent.com/u/49528505?v=4)](https://github.com/keisuke-matsufuji "keisuke-matsufuji (5 commits)")

### Embed Badge

![Health badge](/badges/keisuke-matsufuji-phpunit-blocker/health.svg)

```
[![Health](https://phpackages.com/badges/keisuke-matsufuji-phpunit-blocker/health.svg)](https://phpackages.com/packages/keisuke-matsufuji-phpunit-blocker)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)

PHPackages © 2026

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