PHPackages                             wickedone/muppet - 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. wickedone/muppet

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

wickedone/muppet
================

testing your getters, setters, adders, removers, issers and whatevers

2.0.0(4y ago)08.0k↑1400%1MITPHPPHP &gt;=7.4

Since Nov 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wickedOne/muppet)[ Packagist](https://packagist.org/packages/wickedone/muppet)[ RSS](/packages/wickedone-muppet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (19)Versions (4)Used By (1)

muppet
======

[](#muppet)

unit testing your getters, setters, adders, removers, issers and whatevers.

[![Mutation testing badge](https://camo.githubusercontent.com/2b76e88851569229f6266e3b24a0d8e2ca21ecdaae1763d169503490e46cabcb/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532467769636b65644f6e652532466d75707065742532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/wickedOne/muppet/master)[![Type Coverage](https://camo.githubusercontent.com/120500a92e3c172b8bdafbcae9edcf720a94709c8f0770a0669f709466c8d792/68747470733a2f2f73686570686572642e6465762f6769746875622f7769636b65644f6e652f6d75707065742f636f7665726167652e737667)](https://shepherd.dev/github/wickedOne/muppet)[![codecov](https://camo.githubusercontent.com/59364f87493a7b86c62c87bd58125bf41d61bcbeac126488392debdfccdb9a68/68747470733a2f2f636f6465636f762e696f2f67682f7769636b65644f6e652f6d75707065742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/solrphp/solarium-bundle)[![PHPStan static analysis](https://github.com/wickedOne/muppet/actions/workflows/phpstan.yml/badge.svg)](https://github.com/solrphp/solarium-bundle/actions/workflows/phpstan.yml)[![coding standards](https://github.com/wickedOne/muppet/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/solrphp/solarium-bundle/actions/workflows/coding-standards.yml)

installation
------------

[](#installation)

to add this library to your dev dependencies use

```
composer require --dev wickedone/muppet
```

but why?
--------

[](#but-why)

a lot has been written about the necessity of testing your getters and setters or why it shouldn't been done. from my personal perspective, testing getters and setters provide a stable level of coverage and thus the ability to pin your ci to a minimum coverage value.

what it does
------------

[](#what-it-does)

this library doesn't promise to generate perfect, non failing tests out of the box (though it tries). it does however generate test classes which are easy to modify and, most importantly, are compatible with [infection](https://infection.github.io/guide/) (i.e. not too much black magic fuckery).

usage
-----

[](#usage)

```
$config = new Config(
  '~/Code/Project/src',  // base dir
  '~/Code/Project/tests/Unit', // tests dir
  // namespace fragments
  [
    'Awesome',
    'Namespace',
    'Tests',
    'Unit',
  ],
  'foo ' // author (optional)
);

(new Generator($config))
  ->generate('MyEntity')
;
```

assumptions
-----------

[](#assumptions)

because we love those...

- iterable properties use adders and removers rather than setters
- removers return booleans: true on removal, false otherwise
- `Tests` is part of the tests namespace

symfony integration
-------------------

[](#symfony-integration)

please see the [muppet-bundle](https://github.com/wickedOne/muppet-bundle)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.9% 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 ~34 days

Total

3

Last Release

1580d ago

Major Versions

1.0.1 → 2.0.02022-01-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/58a6398d89438fa3d1c2d63b3d7eedb3c9c759cbea8d539a9e1ba7ff921f7441?d=identicon)[wickedOne](/maintainers/wickedOne)

---

Top Contributors

[![wickedOne](https://avatars.githubusercontent.com/u/343850?v=4)](https://github.com/wickedOne "wickedOne (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

infectionintegration-testingmutationmutation-testingphpphpunittddtesttestingtesting-toolsunit-testunit-testingtestingphpunit

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wickedone-muppet/health.svg)

```
[![Health](https://phpackages.com/badges/wickedone-muppet/health.svg)](https://phpackages.com/packages/wickedone-muppet)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69417.9M511](/packages/spatie-phpunit-snapshot-assertions)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

59610.9M150](/packages/phpunit-phpunit-selenium)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

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