PHPackages                             cdn77/phpstan-test-utils-rule - 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. cdn77/phpstan-test-utils-rule

Abandoned → [cdn77/test-utils](/?search=cdn77%2Ftest-utils)ArchivedPhpstan-extension[Testing &amp; Quality](/categories/testing)

cdn77/phpstan-test-utils-rule
=============================

A PHPStan rule to be used with the cdn77/test-utils package

12.8kPHP

Since Dec 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cdn77/PHPStanTestUtilsRule)[ Packagist](https://packagist.org/packages/cdn77/phpstan-test-utils-rule)[ RSS](/packages/cdn77-phpstan-test-utils-rule/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cdn77 PHPStan TestUtils Rule
============================

[](#cdn77-phpstan-testutils-rule)

[![Build Status](https://camo.githubusercontent.com/2e5bab6e02fc803421b3c5cbbe3511a725bed052b893178b61428cee20746ecc/68747470733a2f2f7472617669732d63692e636f6d2f63646e37372f5048505374616e546573745574696c7352756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/cdn77/PHPStanTestUtilsRule)[![Downloads](https://camo.githubusercontent.com/4439e48e38a6f9ad452966baf821c8360e70c19cd33cbd1e2a7cb5d55cd81adc/68747470733a2f2f706f7365722e707567782e6f72672f63646e37372f7068707374616e2d746573742d7574696c732d72756c652f642f746f74616c2e737667)](https://packagist.org/packages/cdn77/phpstan-test-utils-rule)[![Packagist](https://camo.githubusercontent.com/d486a5c6bbb351f65b1ec47b1a9c743d92ec32495f842b2839bb2d85cf613afe/68747470733a2f2f706f7365722e707567782e6f72672f63646e37372f7068707374616e2d746573742d7574696c732d72756c652f762f737461626c652e737667)](https://packagist.org/packages/cdn77/phpstan-test-utils-rule)[![Licence](https://camo.githubusercontent.com/9c370b7abe7949953b7a2898788edb49e222f0ef954c251c2f03366d2610ae8f/68747470733a2f2f706f7365722e707567782e6f72672f63646e37372f7068707374616e2d746573742d7574696c732d72756c652f6c6963656e73652e737667)](https://packagist.org/packages/cdn77/phpstan-test-utils-rule)[![Quality Score](https://camo.githubusercontent.com/a9ceb7593d5f68f48ee1d3f11c58809bcc8fe5c9f6601f70b5297ec3e7ace5cd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63646e37372f5048505374616e546573745574696c7352756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cdn77/PHPStanTestUtilsRule)[![Code Coverage](https://camo.githubusercontent.com/d078df04899e932560c0ef0d7c518e51a1125eae9f502dd50b04ce6815a5aebd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63646e37372f5048505374616e546573745574696c7352756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/simPod/PHPStanTestUtilsRule)

Extension helps PHPStan to determine return type from `makeStub()` method provided by MakeStub Feature in [Cdn77 Test Utils](https://github.com/cdn77/TestUtils).

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

[](#installation)

- Require this project as composer dev dependency:

```
composer require --dev cdn77/phpstan-test-utils-rule

```

Extension supports [PHPStan Extension Installer](https://github.com/phpstan/extension-installer) so it will be installed automatically on composer require.

If you do not use the installer, you have to include `extension.neon` in your PHPStan config.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/6d3c256a4ff7a9ba2ff6057989b4126de73ba2058daddbefe10aefcb5012fff0?d=identicon)[grongor](/maintainers/grongor)

![](https://www.gravatar.com/avatar/3930b669c9db4083930e36c23f5f0d36d53935aa1dfd1c8cbcfed2a4db165b94?d=identicon)[marek.fiala](/maintainers/marek.fiala)

---

Top Contributors

[![simPod](https://avatars.githubusercontent.com/u/327717?v=4)](https://github.com/simPod "simPod (9 commits)")

---

Tags

phpphpstanphpstan-extensionphpstan-rulestestingtesting-tools

### Embed Badge

![Health badge](/badges/cdn77-phpstan-test-utils-rule/health.svg)

```
[![Health](https://phpackages.com/badges/cdn77-phpstan-test-utils-rule/health.svg)](https://phpackages.com/packages/cdn77-phpstan-test-utils-rule)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[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)

PHPackages © 2026

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