PHPackages                             halleck45/mutatesting - 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. halleck45/mutatesting

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

halleck45/mutatesting
=====================

mutation testing tool for PHP

0.0.2(12y ago)6615710[4 issues](https://github.com/Halleck45/MutaTesting/issues)[1 PRs](https://github.com/Halleck45/MutaTesting/pulls)MITPHPPHP &gt;=5.3

Since Jun 12Pushed 12y ago5 watchersCompare

[ Source](https://github.com/Halleck45/MutaTesting)[ Packagist](https://packagist.org/packages/halleck45/mutatesting)[ RSS](/packages/halleck45-mutatesting/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

MutaTesting
===========

[](#mutatesting)

Mutation testing tool for PHP.

[![Build Status](https://camo.githubusercontent.com/37c76c3c50a5fcc6a76659f93c2ee6e83b0620f7453d85b189b1479e187730bd/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f48616c6c65636b34352f4d75746154657374696e672e706e67)](http://travis-ci.org/Halleck45/MutaTesting)[![Latest Stable Version](https://camo.githubusercontent.com/01520fd53bc36f9197f6ec7f211e114c3c1d839b49f67940edecb32826770100/68747470733a2f2f706f7365722e707567782e6f72672f68616c6c65636b34352f6d75746174657374696e672f762f737461626c652e706e67)](https://packagist.org/packages/halleck45/mutatesting)

According to [Wikipedia](http://en.wikipedia.org/wiki/Mutation_testing):

> Mutation testing (or Mutation analysis or Program mutation) evaluates the quality of software tests. Mutation testing involves modifying a program's source code or byte code in small ways.

MutaTesting supports [PHPUnit](http://phpunit.de/manual/current/en/index.html) and [atoum](http://docs.atoum.org/). You can create an adapter for any PHP testing framework.

\## Requirements

You only need PHP 5.3 . No specific PHP extension is required...

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

[](#installation)

\### As phar archive

Simply download the [phar archive](build/mutatesting.phar) and run the following command :

```
php mutatesting.phar {tool} {binary}  {test directory}

```

### With Composer

[](#with-composer)

Edit your `composer.json`:

```
"require": {
    "halleck45/mutatesting" : "@dev"
}
```

And run Composer:

```
php composer.phar update halleck45/mutaTesting
```

Usage
-----

[](#usage)

```
./bin/mutatesting {tool} {binary}  {test directory}
```

Example for PHPUnit:

```
./bin/mutatesting phpunit phpunit.phar myTestFolder
```

Example for atoum:

```
./bin/mutatesting atoum mageekguy.atoum.phar myTestFolder
```

Note that you don't need to use the `-d` or `-f` option with atoum...

### Advanced usage

[](#advanced-usage)

#### Strategy

[](#strategy)

In order to avoid to have too much mutants, MutaTesting uses [PhpMetrics](https://github.com/Halleck45/PhpMetrics) in order to estimate number of bugs in each tested file, and focuses only on files that contain more anomalies.

You can use the `--bugs` option to define the limit to use.

For example, `--bugs=".6"` means that mutants are preserved only if there is at least 0.6 estimated bugs in the tested file.

#### Formatters

[](#formatters)

To have a html report file, tou need to use the `--report-html` option.

```
./bin/mutatesting {tool} {binary} {test directory} --report-html=/tmp/file.html
```

#### Testing options

[](#testing-options)

If your tests need options, you can pass them with `--options`

```
./bin/mutatesting phpunit phpunit.phar  myTestFolder --options="-c phpunit.xml"
```

\#### Parallelization

You can change the number of parallelized tests with the `processes` options :

```
./bin/mutatesting {tool} {binary} {test directory} --processes=10
```

\#### Performance

MutaTesting is very slow : your unit tests will be runned as many times as there are mutant. In order to increase performance, a cache file is created in `/tmp/muta-cache.php`.

Copyright
---------

[](#copyright)

Copyright (c) 2014 Jean-François Lépine. See LICENSE for details.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

4401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecd3f699bbfa9f96de09f237059302d7ff8e27b9d3af34e770827f481f9497ea?d=identicon)[Halleck](/maintainers/Halleck)

---

Top Contributors

[![sanpii](https://avatars.githubusercontent.com/u/113045?v=4)](https://github.com/sanpii "sanpii (5 commits)")

---

Tags

unittestmutation testing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/halleck45-mutatesting/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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