PHPackages                             schnittstabil/sugared-phpunit - 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. schnittstabil/sugared-phpunit

Abandoned → [sugared-rim/phpunit](/?search=sugared-rim%2Fphpunit)Library[Testing &amp; Quality](/categories/testing)

schnittstabil/sugared-phpunit
=============================

PHPUnit sweetened with ease

7.0.0(8y ago)24575MITPHP

Since Apr 3Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (15)Used By (5)

SugaredRim\\PHPUnit [![Build Status](https://camo.githubusercontent.com/6191b0b15e41b73fc39bc9f51ed89f420cbeb69e6e2769b33f60c81e7146c8c3/68747470733a2f2f7472617669732d63692e6f72672f737567617265642d72696d2f706870756e69742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sugared-rim/phpunit) [![Coverage Status](https://camo.githubusercontent.com/78388657b582796d2a3010b8b05661fb6ee1eaede5e51765275adee112150b0b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f737567617265642d72696d2f706870756e69742f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/sugared-rim/phpunit?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/93fd54834921deb7b87ec21524c04548d7a498b6c74dd9829abe530e37176f01/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737567617265642d72696d2f706870756e69742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sugared-rim/phpunit/?branch=master) [![Code Climate](https://camo.githubusercontent.com/066c8ff186c44f1fd038f01486b5c765e8827e740158853d9ffb243d90da4d2d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f737567617265642d72696d2f706870756e69742f6261646765732f6770612e737667)](https://codeclimate.com/github/sugared-rim/phpunit)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#sugaredrimphpunit----)

[![SensioLabsInsight](https://camo.githubusercontent.com/8ea1c253a895fd5796b2d85b0a933e4aa4d6e5bc4b5a3d9f87660e5f2ff6161c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34646237336636302d653734302d343234642d613062382d3761633135373131363462352f6269672e706e67)](https://insight.sensiolabs.com/projects/4db73f60-e740-424d-a0b8-7ac1571164b5)

> PHPUnit sweetened with ease 🍒

SugaredRim\\PHPUnit takes an opinionated view of testing with [PHPUnit](https://phpunit.de), it is preconfigured to get you up and running as quickly as possible.

Install
-------

[](#install)

```
$ composer require --dev sugared-rim/phpunit

```

Usage
-----

[](#usage)

Instead of requiring and running `phpunit` use `sugared-rim-phpunit` - that's it, no `phpunit.xml*` needed:

```
{
    ...
    "require-dev": {
        "sugared-rim/phpunit": ...
    },
    "scripts": {
        "test": "sugared-rim-phpunit"
    }
}
```

Configuration
-------------

[](#configuration)

You may overwrite some options by putting it in your `composer.json`.

Some of the default settings:

```
{
    ...
    "scripts": {
        "test": "sugared-rim-phpunit"
    },
    "extra": {
        "sugared-rim/phpunit": {
            "bootstrap": "vendor/autoload.php",
            "coverage": {
                "text": "php://stdout",
                "clover": "build/logs/clover.xml",
                "html": "build/coverage-phpunit/"
            },
            "src": "src",
            "tests": "tests",
            "colors": true,
            "sugared": {
                "listeners": [
                ]
            }
        }
    }
}
```

### src

[](#src)

The source directory.

### tests

[](#tests)

The tests directory.

### coverage

[](#coverage)

See [Command-Line Options](https://phpunit.de/manual/current/en/textui.html#textui.clioptions) for details.

### Example: Add SpeedTrapListener

[](#example-add-speedtraplistener)

```
$ composer require --dev johnkary/phpunit-speedtrap

```

```
{
    ...
    "extra": {
        "sugared-rim/phpunit": {
            "sugared": {
                "listeners": [
                    {
                        "class": "JohnKary\\PHPUnit\\Listener\\SpeedTrapListener",
                        "arguments": [{"slowThreshold": 500, "reportLength": 10}]
                    }
                ]
            }
        }
    }
}
```

License
-------

[](#license)

MIT © [Michael Mayer](http://schnittstabil.de)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

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

Recently: every ~134 days

Total

13

Last Release

2974d ago

Major Versions

0.6.0 → 1.0.02016-09-26

1.0.0 → 2.0.02016-11-08

2.0.0 → 5.2.02016-11-08

5.2.0 → 6.0.02017-02-13

6.0.0 → 7.0.02018-03-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6059032?v=4)[Michael Mayer](/maintainers/schnittstabil)[@schnittstabil](https://github.com/schnittstabil)

---

Top Contributors

[![schnittstabil](https://avatars.githubusercontent.com/u/6059032?v=4)](https://github.com/schnittstabil "schnittstabil (18 commits)")

---

Tags

testingphpunitsugaredpreconfiguredsugared-rim

### Embed Badge

![Health badge](/badges/schnittstabil-sugared-phpunit/health.svg)

```
[![Health](https://phpackages.com/badges/schnittstabil-sugared-phpunit/health.svg)](https://phpackages.com/packages/schnittstabil-sugared-phpunit)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[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)[yoast/phpunit-polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

18338.5M839](/packages/yoast-phpunit-polyfills)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[matthiasnoback/symfony-config-test

Library for testing user classes related to the Symfony Config Component

1679.8M395](/packages/matthiasnoback-symfony-config-test)

PHPackages © 2026

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