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(2y ago)41.8k↑300%PHP

Since Feb 6Pushed 2y 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 today

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

773d 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

[brianium/paratest

Parallel testing for PHP

2.5k136.1M987](/packages/brianium-paratest)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M344](/packages/drupal-core-dev)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

30314.4k7](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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