PHPackages                             genkiroid/phpunit-filter-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. genkiroid/phpunit-filter-blocker

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

genkiroid/phpunit-filter-blocker
================================

Block phpunit filter options

2.0.0(6y ago)217.2k↓42.4%PHP

Since Feb 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/genkiroid/phpunit-filter-blocker)[ Packagist](https://packagist.org/packages/genkiroid/phpunit-filter-blocker)[ RSS](/packages/genkiroid-phpunit-filter-blocker/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

PHPUnitFilterBlocker
====================

[](#phpunitfilterblocker)

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

[![CI](https://github.com/genkiroid/phpunit-filter-blocker/workflows/CI/badge.svg?branch=master)](https://github.com/genkiroid/phpunit-filter-blocker/workflows/CI/badge.svg?branch=master)

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

[](#installation)

```
$ composer require genkiroid/phpunit-filter-blocker

```

Settings
--------

[](#settings)

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

```

                    false

                    false

```

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

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

[](#about-blocking)

Block test case specification. (Fixed)

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

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

```

Block `--filter` option. (Fixed)

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

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

```

Block `--group` option. (Option)

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

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

```

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

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

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

```

No blocking example.

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

..                                                                  2 / 2 (100%)

Time: 83 ms, Memory: 6.00 MB

OK (2 tests, 2 assertions)

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

2328d ago

Major Versions

1.0.0 → 2.0.02020-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/66a2bd04db37d36f3b5d2c6f30862fa45202f829cde1f59b54cd891e97d100cb?d=identicon)[genkiroid](/maintainers/genkiroid)

---

Top Contributors

[![genkiroid](https://avatars.githubusercontent.com/u/1169623?v=4)](https://github.com/genkiroid "genkiroid (20 commits)")

---

Tags

phpunitphpunit-listener

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/genkiroid-phpunit-filter-blocker/health.svg)

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

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/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.6M343](/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)
