PHPackages                             rector/custom-phpspec-to-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. rector/custom-phpspec-to-phpunit

ActiveRector-extension[Testing &amp; Quality](/categories/testing)

rector/custom-phpspec-to-phpunit
================================

Rector migration rules for PHPSpec to PHPUnit

0.6.2(1y ago)839.1k↓40.6%3MITPHPPHP &gt;=7.4CI passing

Since Oct 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rectorphp/custom-phpspec-to-phpunit)[ Packagist](https://packagist.org/packages/rector/custom-phpspec-to-phpunit)[ RSS](/packages/rector-custom-phpspec-to-phpunit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (47)Used By (0)

Rector Rules for PhpSpec to PHPUnit migration
=============================================

[](#rector-rules-for-phpspec-to-phpunit-migration)

- [Rules Overview](/docs/rector_rules_overview.md)

Install
-------

[](#install)

- runs on PHP 7.4+

```
composer require rector/custom-phpspec-to-phpunit --dev
```

Usage
-----

[](#usage)

1. Register set

```
$rectorConfig->sets([
    \Rector\PhpSpecToPHPUnit\Set\MigrationSetList::PHPSPEC_TO_PHPUNIT,
]);
```

2. Run on specific spec directory

```
vendor/bin/rector process spec
```

This package handles 99 % of changes. Explore these resources to handle edge-cases manually:

-

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance47

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.8% 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 ~12 days

Recently: every ~113 days

Total

46

Last Release

399d ago

PHP version history (4 changes)0.1.0PHP &gt;=7.4

0.1.7PHP &gt;=7.2

0.2.0PHP &gt;=8.1

0.4.9PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (253 commits)")[![Prometee](https://avatars.githubusercontent.com/u/861820?v=4)](https://github.com/Prometee "Prometee (2 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")

### Embed Badge

![Health badge](/badges/rector-custom-phpspec-to-phpunit/health.svg)

```
[![Health](https://phpackages.com/badges/rector-custom-phpspec-to-phpunit/health.svg)](https://phpackages.com/packages/rector-custom-phpspec-to-phpunit)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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